Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
FeepingCreature
feepingcreature at gmail.com
Tue Feb 9 07:50:07 UTC 2021
On Monday, 8 February 2021 at 14:24:35 UTC, Steven Schveighoffer
wrote:
> On 2/8/21 6:46 AM, FeepingCreature wrote:
>>
>> IMO, if I pass an i"I have ${apples + bananas} fruit" to a
>> function, and it allocates memory, this feature completely
>> misses its purpose and I can't see where I'd use it.
>
> I would also not use a feature where .tupleof or some other
> syntax is needed to do what is needed (in major use cases). The
> goal here is to simplify syntax, we already have the
> comma-quote-spam form. However, I do like the mechanism of
> .tupleof for explicitly requesting the tuple form where it
> makes sense.
>
> So an important part of this DIP that will NOT change is that
> you should be able to accept the tuple form via overload
> without having to tack on a converter or property.
>
Thanks, that's a big relief! As long as the tuple form can be
recognized by a template overload, I for one am completely
satisfied.
More information about the Digitalmars-d
mailing list