On 2017-04-19 08:51, Ola Fosheim Grøstad wrote:
If you want AST-macros in D you should also argue for redefining the core language, and turn everything that is unnecessary and that can be done as lowering into macros (e.g. "for each").
If D had AST macros from the beginning, then yes, "foreach" could have been implemented as a macro.
-- /Jacob Carlborg