I've been using accessors for every instance variable, and even using them internally.

I have to admit, because of the need to preface every method call with "self", it makes the code look less clean.

I've also ended up with what seems to be an odd construct:

clear
        self myCollection removeAll: self myCollection

Part of this is the self thing:

        myCollection removeAll: myCollection

and the other part is...I guess, not being able to find a "clear"

        Thanks for all the feedback guys. Very helpful.

I've been too lazy with my Smalltalk (thinking) in the past and this has helped a lot.
_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to