tags:

http://okmij.org/ftp/Computation/Subtyping/

 

In the article, the author claims that OOP is not a good way to program since a class that extends another can break the  Liskov Substitution Principle. Meaning, it can break existing code, even when the implementation seems sound. The solution is FP.

 

(Please don't take it that I personally think that OOP is bad, just posting this article as something disruptive to think about)

 

Warning: the article contains C++ code...

 

 

2

Comments

Very interesting  ... did you notice that both your posts date 10 years ago? :)  ... have you been using a time machine?