Re:Ask HN: Why do you make class members private?
by zwieback on Monday July 25, 2022 @02:21PM
(#32228684)
Not for safety, gave up on that about 20 years ago. But definitely to keep state that I don't want to get messed up by outside calls. Also just to document/signal how an interface should get used to the outside world.
[ Parent
| on HN ]
There are no comments on this comment yet.