Hi,

At Wed, 5 Feb 2003 05:13:02 +0900,
Brian Candler wrote:
> > |Myself, and several others on this list, feel that this warning should be
> > |optional. It's not really necessary at all, unless you're concerned about
> > |making your scripts run on earlier versions of Ruby.
> > 
> > But I still hate shadowing, strong enough to raise warning.
> 
> I think we'd all be reasonably happy with this warning as long as we
> compromise on it being turned on with -w. You might hate shadowing, but many
> of us happily re-use our little local variables like 'i' and 'j', which
> works just fine as long as the values don't persist more than a few lines.

Although I agree that shadowing is one of the worst manners, it
might be too noisy when running a script expects current
behavior.  What about warning when once shadowed variable is
re-used again?

-- 
Nobu Nakada