3 ms·
The whole point of OO is that you don't want code reaching into the internal member data of the object. The real reason that algorithmic code reuse is so diffic
by cageface 15y ago
The whole point of OO is that you don't want code reaching into the internal member data of the object. The real reason that algorithmic code reuse is so difficult in C++ and Java is that they lack usable first-order function literals.
- DanielRibeiro 15y agoNot to mention that lack of structural typing and Mixins make it even harder to actually have reuse. Dynamic languages like Python and Ruby solve this beautifully, and so do Go and Scala on the more static type side.