The state of string interpolation
Paul Backus
snarwin at gmail.com
Fri Dec 7 16:17:54 UTC 2018
On Friday, 7 December 2018 at 14:40:05 UTC, Jonathan Marler wrote:
>> Perhaps what's needed is a different mixin operator that is
>> not verbose and significantly distinguishes it from the
>> template instantiation operator.
>>
>> mixin i!"..."; // instead of this... (too verbose)
>> i!"..."; // or this... (looks too much like a template
>> instantiation)
>> i#"..."; // we create a new mixin operator `#`
>>
>> Mike
>
> An interesting idea.
>
> Maybe id#(...) lowers to mixin(id(...)) Or something.
Congratulations, you've invented Lisp reader macros. :)
https://lisper.in/reader-macros
More information about the Digitalmars-d
mailing list