Re:Inheritance versus Composition
by marcosdumay on Thursday May 09, 2019 @01:10PM
(#19870082)
Yeah, and Python has some standard nomenclature for marking a property as protected and a little bit of behavior for helping mark it as private. You do not need encapsulation for that.
[ Parent
| on HN ]
Re:Inheritance versus Composition
by scarface74 on Thursday May 09, 2019 @01:33PM
(#19870278)
And there is nothing about the Pythom runtime stopping someone from using it anyway.
With a statically typed language, you really have to go out of your way to do it like using reflection and if your code breaks on an update you get what you deserve.