>>>>> "Dale" == Dale Henrichs <[email protected]> writes:
Dale> | Dale> | You should design your object's interface respecting the needed Dale> | protocols, not its internal design. Bad code smell otherwise. Dale> If your intent is to provide for subclassing in the future (or Dale> tomorrow), then you should use accessors exclusively. There is a Dale> place for such tool functionality. I disagree even with that. An "instance variable" is not an interface... it's an implementation detail, even in the presence of subclassing. The interface should be about the behavior, not the implementation. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
