From: Jenda Krynicky Date: 2007-05-25T21:50:41+09:00 Subject: Re: Introducing the "it" keyword Chad Perrin wrote: > On Fri, May 25, 2007 at 07:42:09AM +0900, dblack@wobblini.net wrote: >> >> return v + 1 if its < 10 > > I'm not really clear on how that's any better than this: > > return v + 1 if v < 10 > > In fact, I think the "its" version is a bit more ambiguous, and thus > probably worse. Am I missing something? Yep, the fact that he wanted to be able to shorten something like return f(x, y) + 47*Pi/y if f(x, y) + 47*Pi/y > 0 and make sure the expression is only evaluated once. Though I do think at least in Ruby the most sensible solution is tmp = f(x, y) + 47*Pi/y return tmp if tmp > 0 Jenda -- Posted via http://www.ruby-forum.com/.