Worst ideas/features in programming languages?
Timon Gehr
timon.gehr at gmx.ch
Tue Jan 4 03:11:12 UTC 2022
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.)
More information about the Digitalmars-d
mailing list