Re:Ask HN: Why do you make class members private?
by ungawatkt on Monday July 25, 2022 @02:27PM
(#32228772)
Like alot of written code that doesn't really matter to the computer, I do it as a signal to the reader: you _shouldn't_ be messing with these variable/methods just to use the class. As often noted, someone can and will still go mess with them if they want to, but at least now it's obvious.
[ Parent
| on HN ]
There are no comments on this comment yet.