News for hackers. Stuff that matters.
Re:What Is Good About Haskell? by hope-striker on Thursday October 03, 2019 @03:44PM (#21151247)
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.
Re:What Is Good About Haskell? by gowld on Friday October 04, 2019 @02:40AM (#21155370)
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.