Y
Hacker News
new
|
ask
|
show
|
jobs
by
dragonwriter
4243 days ago
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.
1 comments
tel
4243 days ago
Sure they are: (forall a. X a => a) is a supertype of (forall a. (X a, Y a) => a).
link
dragonwriter
4242 days ago
I stand corrected.
link