Introduction
1.
Formatting
1.1.
Style
1.2.
Naming
2.
Language
2.1.
Import/Export
2.2.
Macros
2.3.
Object construction
2.4.
ref object
2.5.
Memory
2.6.
Variable declaration
2.7.
Variable initialization
2.8.
Procedures
2.9.
Methods
2.10.
proc types
2.11.
result return
2.12.
inline
2.13.
Converters
2.14.
Finalizers
2.15.
Binary data
2.16.
Integers
2.17.
range types
2.18.
string
3.
Error handling
3.1.
Result
3.2.
Exceptions
3.3.
Status codes
3.4.
Callbacks
4.
Libraries
4.1.
std usage
4.2.
Results
4.3.
Hex output
4.4.
Wrappers
4.5.
stew
5.
Tooling
5.1.
Nim version
5.2.
Build
5.3.
Dependencies
5.4.
Editors
5.5.
Debugging
5.6.
Profiling
5.7.
Tricks
6.
Interop with other languages
6.1.
C / general wrapping
6.2.
go
6.3.
rust
Light
Rust
Coal
Navy
Ayu
The Status Nim style guide
Libraries
The libraries section contains guidelines for libraries and modules frequently used in the codebase.