3 ms·
Yes, pattern matching (with destructuring) would be a small addition to the language, and it would be awesome, even without sum types
by nextaccountic 4y ago
Yes, pattern matching (with destructuring) would be a small addition to the language, and it would be awesome, even without sum types
- eru 4y agoPython 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?