@aedt Regarding CTFE, static ifs and Mixins:

Araq (author of Nim) already mentioned **"A real hygienic macro system, no 
string mixin hacks."**.

I don't know D, but I am quite sure that Nim beats D on these three specific 
meta programming aspects (just looked them up quickly).

Nim uses a VM (!) during compilation (also the basis of Nimscript) which means 
meta programming and const procs etc can be run at compile time. Also, the AST 
is yours to manipulate using macros/templates in Nim running via the same VM, 
so ... it's pretty darn neat.

I haven't personally dwelved much into Nim's meta capabilities, but anyone 
following Nim will find that it's the basis of a LOT of good nice stuff in Nim.

Reply via email to