3 ms·
>Haskell - Type classes support polymorphism and extensibility. While most of your examples are valid, I don't think Haskell is remotely object oriented. Type
by aninhumer 11y ago
>Haskell - Type classes support polymorphism and extensibility.
While most of your examples are valid, I don't think Haskell is remotely object oriented. Type classes are not classes.
- pjmlp 11y agoAny Haskell coder knows that. Quoting myself > ... support polymorphism and extensibility. OOP isn't only the C# and Java view of the world.
- aninhumer 11y agoPolymorphism and extensibility are features of OOP, but Haskell implements them in a rather different way to most OOP languages. I realise people disagree about what exactly should be considered OOP, but personally I think not including inheritance in the definition broadens the term beyond usefulness.
- bulutsuzku 11y agoThere is no disagreement, Smalltalk is the object system. Object-orientation was invented in Smalltalk. Other languages and systems are just poor imitations.