DIP 1027---String Interpolation---Community Review Round 1

aliak something at something.com
Mon Dec 16 14:03:34 UTC 2019


On Monday, 16 December 2019 at 14:02:17 UTC, aliak wrote:
> On Monday, 16 December 2019 at 13:22:45 UTC, Atila Neves wrote:
>> On Monday, 16 December 2019 at 10:48:51 UTC, aliak wrote:
>>> On Monday, 16 December 2019 at 01:35:51 UTC, Walter Bright 
>>> wrote:
>>>> On 12/15/2019 2:17 AM, Aliak wrote:
>>>>> To use it people will need to understand how to use d 
>>>>> tuples as well.
>>>>
>>>> No, they don't.
>>>
>>> User: why can't I do this?/Why doesn't this work?
>>>
>>> string s = i"$var";
>>>
>>> Answer?
>>
>> import std.format: format;
>> string s = format(i"$var");
>
> This is non obvious. And only explainable by mentioning tuples.

In other words. You didn't answer anything. You just told the 
user what to do with no explanation as to why that has to be done.


More information about the Digitalmars-d mailing list