From: Josh Huber Date: 2001-05-05T03:30:16+09:00 Subject: [ruby-talk:14654] Re: Arggg Bitten by the block var scope feature!!! matz@zetabits.com (Yukihiro Matsumoto) writes: > I already decided to take some action in the future, because I myself > sometimes fell in this pitfall. But - I should have mentioned in the > previous post - I haven't decided the detail. <> is a candidate of > the action. Personally, I'd leave it the way it is, but introduce a keyword for binding variables to a local scope. Something like lisp? i = 10 let { |i| (1..10).times do | i | end } Although I'm not sure if I like the way this syntax looks. oh well. -- Josh Huber