Hacker News new | past | comments | ask | show | jobs | submit login

I wonder if the right option is to push the macro-like functionality down into the language itself. Something like http://okmij.org/ftp/Computation/free-monad.html starts to offer very macro-like functionality, but deferred to runtime, so you can still look at the original value and even imbue its effects with a different set of semantics.



Or something similar to Nim's metaprogramming features. Nim's templates and macros are wonderful.


Are Nim's metaprogramming features fundamentally different than C++?


Do Nim macros enforce reversibility? If not, they're no better than C++ ones in this regard.

Everything I read about Nim has the whiff of propaganda; tell me what it does better rather than just telling me it's good.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: