Re:Ask HN: Why do you make class members private?
by nitwit005 on Monday July 25, 2022 @02:24PM
(#32228729)
Because if someone is reading or modifying a value where that never makes sense, it indicates a bug. Compilers and IDEs catching bugs automatically is always the ideal.
[ Parent
| on HN ]
There are no comments on this comment yet.