Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2

Steven Schveighoffer schveiguy at gmail.com
Mon Feb 1 16:41:28 UTC 2021


On 2/1/21 11:37 AM, Paul Backus wrote:
> On Monday, 1 February 2021 at 16:16:11 UTC, Steven Schveighoffer wrote:
>> On 2/1/21 11:00 AM, Dukc wrote:
>>> Good. Remember though - you still have to do something to the 
>>> `mixin(i"...")` case Backus warned about. My suggestion about the 
>>> user manually selecting the type is one option, but not the only one. 
>>> Perhaps mixins can be special case to invoke `idup` if any of their 
>>> arguments are instanced from `interp`.
>>>
>>
>> I think we have to special case mixin and assert, which is reasonable, 
>> since this is a language feature.
> 
> Please, no. This way leads to the Dark Side.

There is literally no use case for calling mixin with the expanded 
tuple. If we are doing rewrites, here is one place we should always do it.

Besides, we are looking for consistency, and something.stringof is not 
consistent as pointed out already. The idup call will be consistent.

-Steve


More information about the Digitalmars-d mailing list