Dec. 23, 2008
10:45 p.m.
2008/12/23 Stéphane Ducasse <stephane.ducasse@inria.fr>:
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)