From: Nobuyoshi Nakada Date: 2007-05-25T15:00:34+09:00 Subject: Re: Introducing the "it" keyword Hi, At Fri, 25 May 2007 08:20:09 +0900, Greg Fodor wrote in [ruby-talk:252866]: > > No need for it to be such a special built-in construct. > > Depends on what you mean by "need." For an optimal solution, > I feel it does. "Optimal" means: > > - It introduces the correct scope (yours does not) > - It avoids side effects (yours changes global space) By using $_ instead of $it, these will solve. > - It releases memory upon GC after the statement (yours doesn't) $_ releases after the method. -- Nobu Nakada