From: Robert Dober Date: 2007-05-26T03:18:38+09:00 Subject: Re: Introducing the "it" keyword On 5/25/07, Gregory Seidman wrote: > > You're working too hard: So are you. > > def let(*args) > yield *args > end > > def use_let(a,b,c) > let a+b+c do |it| > return it if it < 10 > end > end > > use_let(1,2,3) # 6 > use_let(4,5,6) # nil returning nil would not be what OP wanted right? > What is wrong with what already works? return sum if (sum = 1 + 2 + 3) < 10 This has been pointed out already in this thread. Cheers Robert -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw