Hacker News new | ask | show | jobs
by albru123 2607 days 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?

2 comments

Pattern matching syntax across many languages is very similar, most notably inspired by ML I'd say.
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#.