3 ms·
Sum types are much more than just error handling though. They can be used to describe any structure made of substructures, where you have _multiple kinds_ of su
by bruce343434 4y ago
Sum types are much more than just error handling though. They can be used to describe any structure made of substructures, where you have _multiple kinds_ of substructures. The type of such a structure is the _sum_ of all the substructure types.