String Metaprogramming

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 18 06:56:35 PDT 2015


On Saturday, 18 July 2015 at 13:48:20 UTC, Clayton wrote:
> There seems to be a lot of mutation happening here yet I have 
> heard no mutation should take place in meta-programming as it 
> subscribes to functional programming paradigm.

That's not true in D, you can just write a regular function and 
evaluate it in a compile time context, like initializing a static 
variable.

You usually don't need to write special code for compile time 
stuff in D.


More information about the Digitalmars-d-learn mailing list