Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



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#.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: