3 ms·
I want my sum types damnit. Nothing like writing a case match over a sum type instead of fighting inheritance.
by klysm 5y ago
I want my sum types damnit. Nothing like writing a case match over a sum type instead of fighting inheritance.
- carlmr 5y agoYes, once I got to know sum-types with match destructuring in F#, every other programming language that doesn't have them feels inferior. It's just such a practical idiom.