Worst ideas/features in programming languages?

Imperatorn johan_forsberg_86 at hotmail.com
Mon Nov 15 14:02:42 UTC 2021


On Monday, 15 November 2021 at 12:41:51 UTC, Timon Gehr wrote:
> On 15.11.21 10:29, Imperatorn wrote:
>> On Monday, 15 November 2021 at 00:49:17 UTC, tsbockman wrote:
>>> [...]
>> 
>> Well, obviously :)
>> 
>> It was more of a joke, but it's still pretty cringe to see it
>
> The reason it exists is that reverse iteration over unsigned 
> types is notoriously error prone. I think it's pretty nice to 
> have this built in, knowing that it will be directly 
> transformed into a simple for loop even in debug builds. It 
> also allows easily reversing the order of iteration of any 
> foreach loop, no matter which form. In particular, there is 
> `static foreach_reverse`.

What's wrong about retro? Too retro :D


More information about the Digitalmars-d mailing list