Out Parameter Pattern Matching #4815
Unanswered
SK-Genius
asked this question in
Language Ideas
Replies: 1 comment
-
Some similar approach:
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Allow pattern matching on the out parameter of methods and extension methods, if the expression returns a bool.
Example
Pro
Alternative Syntax
use keyword
is
andis not
instead ofout
:or the combination
out is
andout is not
:then you can also allow:
Beta Was this translation helpful? Give feedback.
All reactions