Re:The Algebra of Data and the Calculus of Mutation
by munificent on Wednesday April 27, 2011 @12:47PM
(#2490091)
It's important to remember that + is a little different from a C union in that it's automatically tagged, which C unions are not. If you have int+int in a functional language, you always know which arm was chosen. If you have a union of two ints in C you have to add a third boolean field yourself to keep track of which one is active.
[ Parent
| on HN ]
There are no comments on this comment yet.