nim-wiki/Coding-Guidelines.md

7 lines
339 B
Markdown

* Use the implicit "result" variable and try to avoid "return".
* Do not use templates/macros when an inline proc suffices.
* Do not use "nil" for strings and sequences. The procs of the standard library which misuse "nil" as an error value will be deprecated.
# Indentation
Convention is to use 2 spaces, however 4 spaces are also fine.