Guide144.5K views1,400 votes0 replies3,917 following
Compile-Time staticIf in Nim: Remove Unused Branches Before Code Generation
Use a Nim macro with untyped parameters to build a compile-time static-if that drops unused branches from the AST.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use a Nim macro with untyped parameters to build a compile-time static-if that drops unused branches from the AST.