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

It does, but it does not support downcasting (it does support upcasting)

For instance, the Ord typeclass extends the Eq typeclass, so any instance of Ord can be used as an instance of Eq. But there is no way to cast an instance of Eq to an instance of Ord.




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

Search: