On 13/07/14 17:11, Dicebot wrote:

AST reflection + string mixins can do anything that AST macros can do -
assuming one does not want to allow transparent macros (without explicit
mixin/macro keyword at call site) which is a terrible idea in my opinion
anyway.

I think that is the same thing as operator overloading.

auto a = b + c;

The + operator can be overloaded without you knowing.

What about if it wasn't transparent? I don't like using a keyword but perhaps a symbol, like Rust:

foo!("asd");

In Rust ! indicates a macro invocation. But this is already occupied in D for template instantiation. I wonder if we can come up with another good symbol.

--
/Jacob Carlborg

Reply via email to