Skip to content

Comment on Haskell: OOP vs type classes

Comments

I think it is a bit silly to try to re-create OO with type classes or vice-versa. They are just two different modes of thinking and represent two different ways of architecting your program. Personally, I do find OOP a hoax, which leads to just horrendous code, but I'm sure either approach can be used to solve the problem at hand as long as you don't try to fit the round-peg in the square-hole.

For a case against OOP read : http://c2.com/cgi/wiki?ObjectOrientationIsaHoax

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.