3 ms·
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.h
by lmm 11y ago
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 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.
- amyjess 11y agoOr something similar to Nim's metaprogramming features. Nim's templates and macros are wonderful.
- lmm 11y agoDo 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.
- aconz2 11y agoAre Nim's metaprogramming features fundamentally different than C++?