News for hackers. Stuff that matters.
Re:Object Oriented Programming is Inherently Harmful by jimmaswell on Sunday November 30, 2014 @02:29PM (#8677775)
> Maybe there is a role of operator overloading or templates in C++ but I never really found it.

Operator overloading like using + on strings or adding n-space vectors to other n-space vectors is at least convenient, isn't it?

Re:Object Oriented Programming is Inherently Harmful by 14113 on Sunday November 30, 2014 @03:56PM (#8678043)
But at the same time, something that could be achieved by something like Haskell typeclasses, e.g. a "concatenatable" typeclass - which then gives you more polymorphism for free than you originally anticipated!
Re:Object Oriented Programming is Inherently Harmful by loqi on Monday December 01, 2014 @03:51PM (#8683696)
Defining an instance of "concatenable" (eg, Monoid) for some type in Haskell is pretty much isomorphic to overloading some free function (or operator) on some type in C++. It's the same "amount of polymorphism" either way, namely ad-hoc polymorphism.