From: Martin DeMello Date: 2005-10-12T20:41:53+09:00 Subject: Re: Default argument values for blocks Thomas wrote: > > What of &? > > > > a.each( &->(foo="bar"){puts foo} ) # Ick. > > > > Can we drop? > > > > a.each( ->(foo="bar"){puts foo} ) # Better. > > I was dreaming for a long time of a ruby dialect that has all these > fancy arrows haskell has. Everybody proposing arrows, please (try to) > read some haskell code. > > But seriosly, I personally would prefer something in the line lambda(x, > y=1) {...} as it was proposed by other people too. And here I was wishing for \(foo="bar") {}, the way Haskell does it :) (Seriously - I've always found that the best of all the lambda notations) martin