Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: