Le 13/05/2015 18:32, Sven Van Caekenberghe a écrit :
Hmm, why ? I think it is more a question of (personal) style. Direct instance 
variable access without an accessor is a very good way to keep something 
private, it is faster as well. With the current tools, finding usages is very 
easy in both cases.

IMO, an object should only implement the strict minimum of (public) messages, 
so not necessarily getters and setters for everything. Nothing is absolute 
though.
I prefer accessors because I can put breakpoints an control access too
(a matter of taste or style as you said)
In fact I was surprised to see that there was no accessors at all here, but that makes sense here, as it makes sense too not to expose everything.

Thank you for your answer



--
Regards,

Alain


Reply via email to