I'm coming to the conclusion that "subclassing" should only ever be used to talk about relationships between classes, not between types (or instances). Does applying that constraint remove some ambiguity?
Yes, but even they can take advantage of subtyping. All I mean to say is that subtyping is quite simple, and does what it's meant to. And typeclasses take advantage of the way subtyping works to enable ad-hoc polymorphism. I don't see the flaw in subtyping.
-
-
That's a very scala centric perspective, Haskell's type classes don't rely on subytping for example, it's just that Scala's encoding does :)
-
Scala, being 50% OOP, has subtyping everywhere. That's how we model type classes, that's how we model ADTs... but these things can, and usually are, implemented without subtyping.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.