Stuff to remember when developing in Nim.
This post will be updated over time.
- Using
raise
withDefect
cannot be caught when--panics:on
is used
- You can cast
noSideEffect
pragma:
{.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 :-)