TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Inheritance as Antipattern

6 pointsby Jebdmover 16 years ago

1 comment

jganetskover 16 years ago
This is why ML and Haskell can be highly advanced languages without inheritance. Subtyping, by the way, is evil in the type theories (causes more problems than benefits, really)... and so it's no surprise that inheritance sucks in practice.<p>Yes, nitpickers will point out that Ocaml has objects. No one uses them. Also, Haskell has "class extension" for type classes. But, that's much closer to the "composition" that Joshua Bloch talks about in his book than true inheritance.