Remove switch case fallthrough

Mike Parker aldacron at gmail.com
Fri May 14 00:42:47 UTC 2021


On Thursday, 13 May 2021 at 17:52:52 UTC, rempas wrote:
> On Thursday, 13 May 2021 at 16:48:36 UTC, Steven Schveighoffer 
> wrote:
>> First step is to make implicit fallthrough an error instead of 
>> a deprecation. Then after a time, we might be able to make 
>> break optional.
>>
>> -Steve
>
> Exactly! I hope the community will think about it. Like I said, 
> I don't think having some stuff like they are just to do it is 
> a good thing for anyone.

Implicit fallthrough was not deprecated "just to do it". There 
were reasons. Doing so caught bugs and was generally 
well-received. Example:

https://forum.dlang.org/post/lgoda9$23dc$1@digitalmars.com


More information about the Digitalmars-d mailing list