Remove switch case fallthrough
Basile B.
b2.temp at gmx.com
Thu May 13 15:01:47 UTC 2021
On Thursday, 13 May 2021 at 14:12:40 UTC, Ola Fosheim Grøstad
wrote:
> 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"?
or "on", if this does not cause problems with the try catch
construct.
More information about the Digitalmars-d
mailing list