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

Steven Schveighoffer schveiguy at gmail.com
Fri Jan 29 19:35:55 UTC 2021


On 1/29/21 2:33 PM, Paul Backus wrote:
> On Friday, 29 January 2021 at 19:20:59 UTC, Steven Schveighoffer wrote:
>> On 1/29/21 1:49 PM, Paul Backus wrote:
>>> Continuing from the feedback thread...
>>>
>>> On Friday, 29 January 2021 at 16:55:05 UTC, Steven Schveighoffer wrote:
>>>> This is not my interpretation at all. I can't think of a reasonable 
>>>> case aside from your tuple example where idup is required (if that's 
>>>> what you want). Can you?
>>>
>>> Sure, here's another one:
>>>
>>>      anySatisfy!(isSomeString, i"I have ${count} apples")
>>
>> It would be a compiler error, just like it is for a normal string.
>>
>> -Steve
> 
> Ok, you got me, I forgot a `typeof`:
> 
>      anySatisfy!(isSomeString, typeof(i"I have ${count} apples"))

Returns true.

-Steve


More information about the Digitalmars-d mailing list