Y
Hacker News
new
|
ask
|
show
|
jobs
by
noelwelsh
596 days ago
disjoint union is sum type / enum / algebraic data type. Defined at the point of declaration. Each case is distinct (hence, disjoint)
union is what Typescript has. Defined at the point of use. Cases need not be distinct.