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

The joke is, OO language have sum types, albeit incredibly broken ones, because any set of classes that inherits from the same base has the base as a sum type.

You can surface this by implementing the visitor pattern.



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

Search: