Re:Ask HN: Why do you make class members private?
by robalni on Tuesday July 26, 2022 @04:06AM
(#32235609)
> > Ouch, that's a pretty careless reason to start with
> I think it's fine. This is probably the reason that I used to have for using private until I started thinking about it.
I mean I understand if no-one would claim to have that reason currently because people like to have more specific reasons for what they do but it's still a valid reason for using private so I didn't want to leave it out.
> I think it's fine. This is probably the reason that I used to have for using private until I started thinking about it.
I mean I understand if no-one would claim to have that reason currently because people like to have more specific reasons for what they do but it's still a valid reason for using private so I didn't want to leave it out.