Worst ideas/features in programming languages?
rikki at cattermole.co.nz
Tue Jan 4 04:20:25 UTC 2022
On 04/01/2022 4:11 PM, Timon Gehr wrote:
> (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.)
Actually this is kinda what I want.
Remove array, AA definitions in syntax. All you have is a tuple.
A tuple accepts both named and unnamed types or values.
It can devolve into static arrays, associative arrays, dynamic arrays
More information about the Digitalmars-d