Interpolated strings

Gary Willoughby via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 21 01:11:39 PDT 2017


On Thursday, 20 April 2017 at 18:28:30 UTC, Atila Neves wrote:
> I don't understand how
>
> writeln($"{a} times 3 is {a * 3}");
>
> is even marginally better than
>
> writeln(a, " times 3 is ", a * 3);  // look ma, works right now!
>
> It's not even fewer characters.
>
> Atila

This!

This is bloat that doesn't need adding. D is complicated already, 
stop adding more 'stuff' and fix what's already there. I wish 
more time was taken up on libraries and tooling than completely 
unnecessary features like this.


More information about the Digitalmars-d mailing list