nim-wiki/Coding-Guidelines.md

11 lines
366 B
Markdown
Raw Normal View History

2013-01-24 17:02:43 +00:00
* 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.
2013-01-24 17:06:39 +00:00
# Indentation
2013-09-20 07:39:30 +00:00
Convention is to use 2 spaces, however 4 spaces are also fine.
Tabs are _not_ allowed.