Hacker News
new
past
comments
ask
show
jobs
points
by
shhsshs
14 hours ago
|
comments
by
3 hours ago
|
next
[-]
deleted
reply
by
kccqzy
13 hours ago
|
prev
|
[-]
Tagged unions are not union types. A union type is a supertype for any arbitrary collection of types, but a tagged union aka sum type is a single type with multiple data constructors, and does not require subtyping to be implemented.
reply