From: Robert Dober Date: 2007-05-30T20:32:49+09:00 Subject: Re: Introducing the "it" keyword On 5/29/07, Trans wrote: > > > On May 28, 6:55 am, Robert Klemme wrote: > > On 27.05.2007 20:04, Robert Dober wrote: > > >> Um... It's really not that difficult. > > > Sure it is, actually the code is simple, I still try to grasp what is > > > wanted here, you see? > > >> Hope that explains it. If not, let me know. > > > Well see above but never mind :) > > > Thx for your time, I shall probably say what I think about all of this: > > > (a) > > > return v if ((v = 42) % 2).zero? > > > would be nice if it worked > > > (b) > > > I am against fancy enhancements that are purely for optimization but see > > > above. > > > > We are completely on the same page with this. > > I concur. From what I understand, this _will_ eventually work: and furthermore, which slipped away from me at first sight, return @it if ((@it = 42)%2).zero? works already, of course it is nonsense to use an instance variable for this save in the main context. Cheers Robert > > return it if ((it = 42) % 2).zero? > > And that's quite enough, IMHO. > > (The iterator var on the other hand...) > > T. > > > -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw