Worst ideas/features in programming languages?

Paul Backus snarwin at gmail.com
Tue Jan 4 16:58:55 UTC 2022

On Tuesday, 4 January 2022 at 07:52:00 UTC, Walter Bright wrote:
>> If so, maybe one way to make _some_ progress on this is to 
>> have a DIP specifically for destructuring, without adding any 
>> new types?
> I'm not sure what destructuring, but yes, not adding new types.

"Destructuring" means binding members of a tuple to separate 
variables; e.g.,

     struct S { int x; string y; }
     auto (x, y) = S(123, "hello").tupleof;
     assert(x == 123 && y == "hello");

C++17 has something similar, which it calls "structured 

More information about the Digitalmars-d mailing list