Improve C# 'switch' statement #283
Unanswered
The-Futurist
asked this question in
General
Replies: 3 comments
-
Do you have an example where this would be useful? |
Beta Was this translation helpful? Give feedback.
0 replies
-
VB supports this I don't think that is a good thing. All side effects would run up to the matching |
Beta Was this translation helpful? Give feedback.
0 replies
-
This suggestion is already covered by the numerous proposals to expand pattern matching. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider improving the switch statement in C#.
Specifically remove the restriction that each case clause must specify only constants and allow arbitrary expressions.
Beta Was this translation helpful? Give feedback.
All reactions