Interpolated strings
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 19 09:19:09 PDT 2017
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.
More information about the Digitalmars-d
mailing list