Hacker News new | ask | show | jobs
by nextaccountic 1164 days ago
Yes, pattern matching (with destructuring) would be a small addition to the language, and it would be awesome, even without sum types
1 comments

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?