top | item 19841053

(no title)

albru123 | 6 years ago

Thanks for pointing this out, I had no idea they implemented this for C# 8.0

Also is it just me or the switch pattern really is inspired by Rust match?

discuss

order

nixpulvis|6 years ago

Pattern matching syntax across many languages is very similar, most notably inspired by ML I'd say.

anp|6 years ago

Pattern matching as is in Rust has many notable precedents that IIRC the C# folks considered as prior art, not least of which being F#.