DIP 1027---String Interpolation---Community Review Round 1
aliak
something at something.com
Mon Dec 16 14:02:17 UTC 2019
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.
More information about the Digitalmars-d
mailing list