Worst ideas/features in programming languages?
Walter Bright
newshound2 at digitalmars.com
Sat Jan 8 23:03:43 UTC 2022
On 1/3/2022 7:11 PM, Timon Gehr wrote:
> On 04.01.22 04:09, Timon Gehr wrote:
>>
>> To be very clear, I want this:
>>
>> [(1,2),(3,4)].map!((a,b)=>a+b).each!writeln;
>>
>> An this is generally what people mean when they talk about "tuples".
>
>
> (I understand that there is something in the DMD source code already named
> "Tuple", but that's not really a tuple, it's a sequence of values that will auto
> expand into any context. Being able to return that from functions would be nice,
> but I think it's independent of what people are talking about when they want
> tuples.)
Yes, and reconciling this will be the problem.
More information about the Digitalmars-d
mailing list