Hacker News new | ask | show | jobs
by michaelsbradley 925 days ago
Can you give examples?

In my experience, Nim macros (but not templates) can succumb to verbosity in their implementations because manipulation of the AST is generally imperative and can become quite involved in the details of syntax nodes.

Other than that, with the expressiveness of type definitions in Nim, my experience has been that routines often end up short and dry. Learning to wield helpers such as {.push.} and {.pop.} can be helpful in that regard, just depends on what you’re doing.

1 comments

It's been a long time so I can't give you specific examples. I'll take another stab at Nim and see if I feel the same way.