Stuff to remember when developing in Nim.
This post will be updated over time.
- Using
raisewithDefectcannot be caught when--panics:onis used
- You can cast
noSideEffectpragma:
{.cast(noSideEffect).}:
# code goes here
- Almost always prefer
{.inline.}overtemplate, as it lets the C compiler decide when it's best to inline a proc
Top comments (1)
Appreciate the notes…. Keep em coming :-)