Hacker News new | ask | show | jobs
by tel 4232 days ago
Haskell's typeclass provide it.
1 comments

Typeclasses aren't structural typing, they are nominative typing, as typing is controlled by explicit declaration of relations between types and typeclasses, not inferred from structural properties.
Sure they are: (forall a. X a => a) is a supertype of (forall a. (X a, Y a) => a).
I stand corrected.