On Wednesday, 19 April 2017 at 09:49:16 UTC, Jacob Carlborg wrote:
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.
Yup. And actually also "while" and "for". More minimal languages
just have: block, conditional and jump-to-start-of-block.