Re:Ask HN: Why do you make class members private?
by ironmagma on Monday July 25, 2022 @04:05PM
(#32230208)
I’m sure lots of people have considered it. But lots of people can be wrong, myself included.
We do it because it’s largely automated by IDEs now. I strongly suspect that if IDEs didn’t make it so easy to do, we basically wouldn’t bother with it. Python does OOP just fine without real visibility control.
We do it because it’s largely automated by IDEs now. I strongly suspect that if IDEs didn’t make it so easy to do, we basically wouldn’t bother with it. Python does OOP just fine without real visibility control.