From: "ara.t.howard" Date: 2008-05-14T00:00:06+09:00 Subject: Re: lambda, ->, haskell, and so on On May 13, 2008, at 7:35 AM, Paul Brannan wrote: > On Tue, May 13, 2008 at 12:25:10PM +0900, ara.t.howard wrote: >> anonymous = (){ 42 } > > foo (){ 42 } # is this passing a block to foo or is it passing an > # anonymous function as the first argument to foo? > > Paul > anonymous function argument, works like now: cfp:~ > cat a.rb def argv *argv p argv end argv('a') argv ('a') argv ('a', 'b') argv ('a'), ('b') cfp:~ > ruby a.rb a.rb:10: warning: don't put space before argument parentheses ["a"] ["a"] ["a", "b"] ["a", "b"] the space makes it so (i think) that's a just off the cuff so i wouldn't be surprised if there were issues, but i couldn't think of any in, like, 8 seconds of consideration ;-) a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama