Interpolated strings
Atila Neves via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 20 11:28:30 PDT 2017
On Monday, 17 April 2017 at 19:38:33 UTC, Kapps wrote:
> On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote:
>> [...]
>
> C# got this feature recently. I didn't expect it to be a
> significant difference, but I do find it a substantial
> improvement. Not only does it clearly show what goes where, but
> it's so much cleaner and more convenient.
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
More information about the Digitalmars-d
mailing list