DIP 1027--String Interpolation--Final Review Discussion Thread
Tove
tove at fransson.se
Sun Feb 2 15:31:46 UTC 2020
On Sunday, 2 February 2020 at 14:29:17 UTC, Adam D. Ruppe wrote:
> On Sunday, 2 February 2020 at 14:20:16 UTC, Timon Gehr wrote:
>> This is a use case for `alias this`, the language just has to
>> support it.
>
> Indeed.
>
> So is
>
> string s = i"";
>
> so idk which one we'd use (unless the language gets multiple
> alias this lol).
>
Implict conversion to string would trigger allocations! This is
not an option, allocations has to be explict. However alias this
to tuple is fine by me.
More information about the Digitalmars-d
mailing list