Hacker News new | ask | show | jobs
by ninalanyon 106 days ago
Object orientation is a great tool and I wouldn't be without it. But like all tools it has to be applied in the right way in the appropriate situation and is not universally useful.
1 comments

Classic object orientation is wrong. It conflates things that shouldn’t be conflated.

Look at Rust, Haskell, Go, Elm, Purescript, or Idris. All of them have something like traits or interfaces, and don’t need the rest of the badly designed OO machinery.

OO was basically a wrong turn that was taken some time after the development of CLU. It appealed to some people intuitively - including me, I implemented and sold a commercial OO language product in the early 90s - but it was always bad technically.