DynamicExpresso
DynamicExpresso copied to clipboard
Pattern matching expressions
It would great to support pattern matching, not sure how complex the implementation is, but for example having the following condition:
value == "match" || value == null
is much more readable with cs pattern matching
value is "match" or null
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.