Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hope-striker
· 7y ago · 0 comments
They enumerate a finite set of disjoint cases, so in some sense they are an enumeration. But the real reason is, of course, that sum types can be seen a generalization of C enums, so the syntax was chosen to maximize familiarity.
Comments
[–]
gowld
7y ago
Cases aren't values, though. a,b,c is an enum type over enumerable data. int, char, float is an enum kind of enumerable types.