Discussion: Porting 58000 lines of D and C++ to jai, Part 0: Why and How

Iain Buclaw ibuclaw at gdcproject.org
Fri Dec 2 20:35:27 UTC 2022


On Thursday, 24 November 2022 at 12:04:27 UTC, FeepingCreature 
wrote:
> On Thursday, 24 November 2022 at 11:37:57 UTC, Hipreme wrote:
>> - Agreed, if you can put `case` with static foreach, you 
>> should be able to put `else if`
>>
>
> This is not a case of "if doesn't work with this normal 
> feature", it's a case of "case is extremely, **extremely** 
> strange." Case statements work much more like goto labels than 
> statements. For instance, this is valid code:
>

See also [Duff's 
device](https://en.wikipedia.org/wiki/Duff%27s_device).


More information about the Digitalmars-d mailing list