No household is perfect

bearophile bearophileHUGS at lycos.com
Tue Dec 3 19:23:59 PST 2013


Joshua Niehus:

> This would make for a good blog post/wiki article.  Does one 
> already exist?

If you have a AST macros like in Julia language, I think you can 
write something like:

@setExpr(a ∪ (b ∩ c));

The main difference is that the compiler gives you a tree in the 
macro to work on, instead of a string to parse and munge.

Bye,
bearophile


More information about the Digitalmars-d mailing list