Worst ideas/features in programming languages?

Timon Gehr timon.gehr at gmx.ch
Tue Jan 4 05:14:23 UTC 2022


On 04.01.22 05:20, rikki cattermole wrote:
> 
> 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 
> all implicitly.

My point was not that you don't want this, it was that calling it a 
"tuple" serves only to confuse.


More information about the Digitalmars-d mailing list