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

Yes, pattern matching (with destructuring) would be a small addition to the language, and it would be awesome, even without sum types


Python had that kind of pattern matching for ages, but only recently got pattern matching on something like sum-types.

I only found that previous kind of pattern matching useful occasionally. But I guess I would miss it a lot, if it was gone?




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

Search: