Nim Best Practices
Idiomatic Nim: the partial case/underscore-insensitive identifier rule, the module export system, choosing proc/func/template/macro/iterator/method, ARC/ORC value semantics, exception-based error handling with the raises...
Idiomatic Nim: the partial case/underscore-insensitive identifier rule, the module export system, choosing proc/func/template/macro/iterator/method, ARC/ORC value semantics, exception-based error handling with the raises...
The canonical, exhaustive catalogue of Nim semantics that cause confident-but-wrong LLM-generated code: partial case/underscore-insensitive identifiers, the Nim 1.x-to-2.0 ARC/ORC memory-management default change, ref-vs...
Verified guidance on Nim's C FFI (importc/exportc/header/emit), cstring lifetime and GC-safety pitfalls, c2nim binding generation, and compiling Nim to the C++ (importcpp), JavaScript (importjs), and Objective-C (importo...
Verified reference for Nim's compile-time metaprogramming system: hygienic templates and their call-by-name semantics, AST-level macros with NimNode and quote do:, generic constraints and the current stability status of ...