pattern matching on method parameters #66716
Unanswered
chriseatough
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has there been any thoughts or discussion on using switch patterns on parameters, to shorthand writing guard checks at the beginning of a method?
e.g. instead of the following:
You could have:
Beta Was this translation helpful? Give feedback.
All reactions