News for hackers. Stuff that matters.
Re:OOP vs. FP by horrido on Sunday April 30, 2017 @09:56PM (#14235022)
Inheritance is not a strict requirement of OOP. In OOP, you can always use composition, in which case the question also never arises.

Inheritance is there if you need it. It's an available option.

Re:OOP vs. FP by BoiledCabbage on Sunday April 30, 2017 @10:43PM (#14235271)
Yes, but in common discussion, noone when talking about OOP is referring to inheritence-less OOP. No common programming language uses it, few to no programmers practice it. OOP/w inheritance is the default item being discussed.
Re:OOP vs. FP by horrido on Sunday April 30, 2017 @11:40PM (#14235438)
And why is "common discussion" technically relevant? This is not a fault of OOP but of education.
Re:OOP vs. FP by BoiledCabbage on Monday May 01, 2017 @10:37PM (#14243562)
You're talking about about OOP-B, everyone here is talking about OOP-A. OOP-B isn't really a part of what's being discussed.

Anyone can bring it up, but "education" isn't relevant here. It's not what was discussed in the article, or the comments.

Re:OOP vs. FP by nailer on Wednesday May 03, 2017 @08:20AM (#14255043)
As neither of you, I'm talking about OOP. Nobody's limiting the discussion to composition or inheritance. Otherwise we'd be talking about how 'inheritance sucks' rather than 'OOP sucks'.
Re:OOP vs. FP by dllthomas on Monday May 01, 2017 @02:54AM (#14236018)
> in which case the question also never arises.

I'm not sure I see that.

If class A and B wrap a C by composition and expose, respectively, `a` and `b`, then I still very much have the choice of which I'm building. Perhaps less so if they wrap a C by reference, so the C can be reused (it's too late at night to be sure I've thought it all the way through).