Worst ideas/features in programming languages?
Timon Gehr
timon.gehr at gmx.ch
Mon Jan 3 07:40:05 UTC 2022
On 12/29/21 7:48 AM, Walter Bright wrote:
> On 12/28/2021 9:14 PM, Walter Bright wrote:
>> Actually, I agree with the need for tuples, and am very open to a good
>> design for it.
>
> I'd like to see something that unified arrays, structs, argument lists
> (for functions).
I would like to do that, but I think it would break code like this:
void foo(int a,int b){}
void foo(int[2] x){}
After unification, those two function definitions would now be the same.
Is this what you have in mind?
More information about the Digitalmars-d
mailing list