The state of string interpolation

Martin Tschierschke mt at smartdolphin.de
Sat Dec 8 20:46:13 UTC 2018


On Saturday, 8 December 2018 at 19:47:42 UTC, Dennis wrote:
> On Saturday, 8 December 2018 at 19:17:26 UTC, Martin 
> Tschierschke wrote:
>> writeln(i!"foo #{a}".mixin) // which is not to far away from
>
> I don't like one-letter methods/templates that can easily clash 
> with local variables.
>
> foreach(i; 0..10) writeln(i!"oops!".mixin);

You are right using only i would clash easily, but my main 
question was, why it is not allowed to use .mixin ?




More information about the Digitalmars-d mailing list