Open ealeykin opened 2 years ago
Relevant documentation : https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/patterns Relevant specifications : https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/expressions#121212-the-is-operator
We can probably focus on the is
operator, and ignore the switch
statement and expression.
It would great to support pattern matching, not sure how complex the implementation is, but for example having the following condition:
is much more readable with cs pattern matching