Re:Half a decade with Go
by tel on Tuesday November 11, 2014 @08:51AM
(#8589734)
Haskell's typeclass provide it.
[ Parent
| on HN ]
Re:Half a decade with Go
by dragonwriter on Tuesday November 11, 2014 @10:28AM
(#8590242)
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).
Re:Half a decade with Go
by dragonwriter on Tuesday November 11, 2014 @09:28PM
(#8593676)
I stand corrected.