Discussion Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1
Jackel
jackel894_394 at gmail.com
Sun Sep 13 15:40:25 UTC 2020
On Sunday, 13 September 2020 at 13:03:23 UTC, Adam D. Ruppe wrote:
> On Sunday, 13 September 2020 at 10:20:19 UTC, Paul Backus wrote:
>> On Sunday, 13 September 2020 at 03:00:34 UTC, Yuxuan Shui
>> wrote:
>>> Couldn't this be implemented entirely in library?
>>
>> Yes, but not with exactly the same syntax. The library version
>> looks like this:
>>
>> writeln(mixin(i!"Hello $name!"));
>
> That's not the same. mixin cannot create tuples.
It potentially can, or at least wasn't that part of the rationale
for deprecating the comma expression?
More information about the Digitalmars-d
mailing list