News for hackers. Stuff that matters.
Re:Avoid getters and setters whenever possible by spdionis on Thursday March 22, 2018 @07:44AM (#16647718)
Getters/setters vs public properties has nothing to do with encapsulation. Obviously not all properties are public/have getters and setters.
Re:Avoid getters and setters whenever possible by frou_dh on Thursday March 22, 2018 @07:54AM (#16647776)
I didn't mention getters at all. I agree that encapsulation status remains constant in the presence of either setter methods or direct mutation, i.e. broken.