From: Kevin Smith Date: 2001-03-07T13:46:13+09:00 Subject: [ruby-talk:12205] Re: FEATURE REQUEST: 'my' local variables Leo Razoumov wrote: ># PROPOSED FEATURE: >x = 0 #line_1 >{ > my x = 7 # new varible 'x' shadowing 'x' from line_1 > x # -> 7 >} >x # -> 0 If I know that x should be local, I would probably just name it x2 instead. Of course, I try to avoid names like 'x' anyway, but you get the idea. I'm not too fond of the way the language currently works (sometimes it does *this*, but other times it does *that*). But I know it would break too much code to change now. Bottom line: Although creative and reasonable, I don't see this suggestion as improving the language. Kevin