DIP 1027--String Interpolation--Final Review Discussion Thread
Tove
tove at fransson.se
Sun Feb 2 16:31:47 UTC 2020
On Sunday, 2 February 2020 at 16:21:18 UTC, Adam D. Ruppe wrote:
> On Sun, Feb 02, 2020 at 03:31:46PM +0000, Tove via
> Digitalmars-d wrote:
>> Implict conversion to string would trigger allocations!
>
> indeed but you can also just not do that; you do need to
> specift string
> to trigger alias this.
>
>
> but i personally would also be oj with explicit toString call,
> my point
> is really with a struct we can do it all, whereas with the dip
> as-is we
> privilege one niche case at the expense of almost all others.
Yes, but my primary concern is calling functions with string
parameters.
Otherwise I fully agree with you, I prefer your struct solution
with added explict toString and implicit tuple expansion.
More information about the Digitalmars-d
mailing list