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

Sub-types can be represented with algebraic types so I’m not sure that’s necessarily true, for example an abstract class with subclasses can be represented as a sum type


only if there is a fixed set of subclasses, which is not always or even mostly the case.




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

Search: