The state of string interpolation

Mike Franklin slavo5150 at yahoo.com
Fri Dec 7 07:53:14 UTC 2018


On Friday, 7 December 2018 at 01:47:13 UTC, H. S. Teoh wrote:

> And yes, `mixin interp!"..."` is horribly verbose. But 
> ostensibly we could abbreviate it to something like `mixin 
> i!"..."`.

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



More information about the Digitalmars-d mailing list