
Code styles
===========


Status
------

2026-02-23: Draft
2026-02-23: Accepted



Context
-------

Code style depends on what's pleasant to the developer when coding. However, some styles can also provide some advantages over others.



Decision
--------

Given the right reasons, some styles should be adopted.



Justification
-------------

### Space after method/function declaration

Instead of 

    myFunction() {
        // instructions
    }

Use this instead:

    myFunction () {
        // instructions
    }

The reason for this is that visualization is easier to identify the name of the function.


### Comma at begining of line (leading-comma style)

Instead of 

    [
        "item 1",
        "item 2",
        "item 3"
    ]

Use this instead:

    [
          "item 1"
        , "item 2"
        , "item 3"
    ]

The reason for this is that appending a new item doesn't require to modify line of the previous last item.



