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

Reply via email to