Worst ideas/features in programming languages?

Patrick Schluter Patrick.Schluter at bbox.fr
Wed Nov 17 09:23:48 UTC 2021


On Tuesday, 16 November 2021 at 02:14:22 UTC, Timon Gehr wrote:
> On 15.11.21 09:01, Arjan wrote:
>> 
>>> I started this:
>>> https://github.com/tgehr/DIPs/blob/tuple-syntax/DIPs/DIP1xxx-tg.md
>>> https://github.com/tgehr/dmd/commits/tuple-syntax
>>>
>>> Unfortunately, I was too busy at the time to finish the 
>>> implementation, and I am not fully satisfied with the 
>>> proposal. Probably I'd want to add at least static opIndex 
>>> and static opSlice to it. Another issue is that it slightly 
>>> expands `alias this` and I am not sure whether that's a 
>>> direction Walter is willing to invest in at this point.
>> 
>> Just WOW.
>> 
>> What would be needed to get you working on this again?
>
> Some reassurance that it won't be shot down for stupid reasons 
> would go a long way. For `static foreach`, the desired 
> semantics were clear to Walter and Andrei from the start and 
> they really wanted that feature in DMD, so that the DIP process 
> went pretty smoothly. I am not feeling any similar excitement 
> for tuples, even though it's the most wanted feature among 
> forum readers according to the state of D 2018 survey... I just 
> don't have the time and energy required for week-long forum 
> debates anymore.

The proposition at that time was stalled because it collided with 
the comma expression and it was convened that the comma operator 
would have to be removed before tuple syntax could be introduced. 
Now that comma operator is deprecated, it would be the right time 
to reintroduce the tuple syntax.


More information about the Digitalmars-d mailing list