On 8/20/2011 3:46 AM, Kagamin wrote:
Mehrdad Wrote:
Even more common with constructor parameters and instance fields.
If a naming convention encourages shadowing, it's a broken naming convention.
I don't think a convention should /encourage/ shadowing per se, but I don't think it should discourage it either, except for local variable declarations. Parameters shadowing outside members is pretty common and useful, although it really depends on whether the user uses "this" habitually or not.

Reply via email to