3 ms·
> Except that languages which try to provide facilities for this principle have bolted it on in the wrong way and we as an industry have come to accept some oth
by Ace17 9y ago
> Except that languages which try to provide facilities for this principle have bolted it on in the wrong way and we as an industry have come to accept some other feature ("public/final/private" keyword languages) to mean we have, "encapsulation," in our language.
Actually, there's an interesting talk from Uncle Bob saying exactly that: https://www.youtube.com/watch?v=TMuno5RZNeE&t=2325 https://www.youtube.com/watch?v=TMuno5RZNeE&t=2325
The idea is that public/private/protected is an attempt to restore some of the "perfect" encapsulation we had with C; and that we lost this encapsulation with OO langages.