News for hackers. Stuff that matters.
Re:Algebraic Data Types by dllthomas on Thursday July 31, 2014 @11:20AM (#8114601)
"To do this with a sum type you'd have to have a common super type of string and nil and no other types."

This seems wrong. You can make a new type that simply contains one of those, right?

In a sense that's what you're doing with a sum type in Haskell, though there you get to produce new types automatically from higher kinded types.

There are no comments on this comment yet.