News for hackers. Stuff that matters.
Re:Why inheritance sucks by loup-vaillant on Friday August 20, 2010 @09:57AM (#1620375)
Quite right. We can correct that by showing the classification of main programming paradigms[1]. It shows that, OO just needs records, procedures, named state and closures. (I personally prefer to say the more understandable "OO needs structs, assignment, and closures".)

Now I have a problem, however: what is the difference between OO and stateful functional programming?

[1]: http://www.info.ucl.ac.be/~pvr/paradigms.html

Re:Why inheritance sucks by barrkel on Friday August 20, 2010 @10:15AM (#1620420)
Polymorphism is at the core of most OO language features. Sum types aren't a viable substitute in most large apps because they are closed to extension at runtime. Doing it right functionally means rolling your own protocol system.