| ... | @@ -0,0 +1,16 @@ |
| 1 | # Official Style Guide |
| 2 | |
| 3 | These conventions are not enforced by the compiler, but they are shipped in |
| 4 | this documentation along with the compiler in order to provide a point of |
| 5 | reference, should anyone wish to point to an authority on agreed upon Zig |
| 6 | coding style. |
| 7 | |
| 8 | * 4 space indentation |
| 9 | * `camelCaseFunctionName` |
| 10 | * `TitleCaseTypeName` |
| 11 | * `snake_case_variable_name` |
| 12 | * Open braces on same line, unless you need to wrap. |
| 13 | * If a list of things is longer than 2, put each item on its own line and |
| 14 | exercise the abilty to put an extra comma at the end. |
| 15 | |
| 16 | See Zig standard library for examples. |