3 ms·
Inheritance has nothing to do with oop, oop was about message passing. Most big oop languages seem to discourage inheritance in favor of composition, how can in
by Fire-Dragon-DoL 4y ago
Inheritance has nothing to do with oop, oop was about message passing.
Most big oop languages seem to discourage inheritance in favor of composition, how can inheritance be a requirement?
On the other side, message passing and dynamic dispatch are strictly related and you can do that with golang interfaces!
So yes, it does support full oop,
what it doesn't support is class-based programming.
Does it matter at this point? Oop hasn't solved any of the big problems it claimed and fp did not either.
https://news.ycombinator.com/item?id=11966570 https://news.ycombinator.com/item?id=11966570
https://en.wikipedia.org/wiki/Object-oriented_programming?wprov=sfla1 https://en.wikipedia.org/wiki/Object-oriented_programming?wp...
- kaba0 4y agoThat’s just the Alan Kay definition - just because he coined the term, it is not at all how it is used nowadays. OOP as commonly understood requires some form of inheritance.
- Fire-Dragon-DoL 4y agoI don't agree on this statement: the wikipedia page for oop strictly distinguish between the two, given how widespread wikipedia is, that can be considered a valid source for this definition. That page distinguishes between oop and class-based programming