Hacker News new | past | comments | ask | show | jobs | submit login

Lots of languages reify types as classes, but that's not necessary. You don't need classes to have types.

Using classes also leaves entire segments of type-expression on the table or makes them unwieldy e.g. https://en.wikipedia.org/wiki/Tagged_union

So it's orthogonal, classes are just one possible implementation of types.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: