2008/12/23 Stéphane Ducasse <[email protected]>: > I think that this kind of shadowing is really not a good idea. > In VisualWorks you can do it and I really would hate code written that > way > because I would always have to keep in mind that only on certain methods > the variable I see is not the instance variable of the object but a > local > You could argue that since you redefine the variable you know it > and this could work because we have small methods but with code longer > than > a page it can be leading to bug.
I agree shadowing makes code you don' t know a little harder to understand (one more item to keep in mind when reading the code) _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
