Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bruce343434
on March 9, 2023
|
parent
|
context
|
favorite
| on:
Parse, don't validate (2019)
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: