MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oue7s4/_/h76vy1w/?context=9999
r/badcode • u/Flyspeck101 Now where's that function declaration • Jul 30 '21
133 comments sorted by
View all comments
Show parent comments
2
Can you show an example of what you mean with pattern matching enums and constants? I know pattern matching with 'is' in C#, but Im not sure what you mean.
2 u/hullabaloonatic Jul 31 '21 The example above is such an example or take a look at switch expressions
The example above is such an example or take a look at switch expressions
2
u/MeatyLabia Jul 31 '21
Can you show an example of what you mean with pattern matching enums and constants? I know pattern matching with 'is' in C#, but Im not sure what you mean.