else clause in switch #1996
Inc0n
started this conversation in
Ideas/Requests
Replies: 1 comment 1 reply
-
We already have that: switch value {
case 0: do something
case 1: do some other thing
case: do something for all other cases
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be slightly more convienient to have a else clause in switch statements, which would unconditionally fell through:
For example:
However, it can be done in a different way, right now:
Beta Was this translation helpful? Give feedback.
All reactions