Remove switch case fallthrough

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu May 13 14:12:40 UTC 2021


On Thursday, 13 May 2021 at 13:55:10 UTC, IGotD- wrote:
> In practice this is possible by just add another keyword. 
> Something like "switch2", "switchb", can't really come up with 
> good name. Then you just have a switch with break as default. 
> What I have against it is that a new type of bugs will occur 
> where the programmers accidentally mix up the two.

Just use a different keyword than "case"? Like "when"?






More information about the Digitalmars-d mailing list