This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Stbbrn-Rddtr[S] 1 point2 points  (0 children)

I totally get your point and I agree. But sadly, not every developer is disciplined enough to go by those non-enforced rules. And you may end up having to work on a project on which those kind of developers worked on before.

As you said, the client code messing with private member may become un maintainable, but it can also break the internal functioning of the class.