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

Meta jared771 at gmail.com
Fri Feb 5 01:27:05 UTC 2021

On Thursday, 4 February 2021 at 22:34:37 UTC, Steven 
Schveighoffer wrote:
> On 2/4/21 11:15 AM, Meta wrote:
>> However, if you want a tuple sequence as described in the DIP, 
>> you can simply call a (probably compiler-supplied) helper 
>> method; maybe it doesn't even have to be new: why not .tupleof?
> Wow, I can't believe I didn't think of this. This makes things 
> a bit easier to reason about, because now we have a way to 
> explicitly form a string and a way to explicitly form a tuple. 
> I just tested, and "string".tupleof is an error, so that fits 
> perfectly.
> I have to confer with my partner in crime, but thank you for 
> this nugget, and I really like the direction with the 
> discussion here.
> -Steve

Glad you found it useful!

More information about the Digitalmars-d mailing list