Interpolated strings

Nick Sabalausky (Abscissa) via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 21 05:32:01 PDT 2017


On 04/21/2017 04:11 AM, Gary Willoughby wrote:
> 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.

"Completely unnecessary" features like that are exactly what make D 
worthwhile in the first place. Otherwise may as well stick to C++ or Java.



More information about the Digitalmars-d mailing list