News for hackers. Stuff that matters.
Re:Parse, Don't Validate (2019) by bruce343434 on Thursday March 09, 2023 @04:18AM (#35079571)
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.

There are no comments on this comment yet.