From: "David A. Black" Date: 2008-10-22T05:24:41+09:00 Subject: [ruby-core:19431] Re: Now that lambda has more powerful arguments... Hi -- On Wed, 22 Oct 2008, Paul Brannan wrote: > On Wed, Oct 22, 2008 at 04:38:19AM +0900, David A. Black wrote: >> Yes; I believe it's got the full complement of method argument >> semantics at this point. >> >> lambda {|a,b=1,*c,d| ... } > > So long as the default value doesn't include a '|' character? Yes; then you'd have to do b=(x|y). I suppose that counts as a difference with ->(){}, but I hope it's not enough to stop the removal of ->(){} (which I'm rooting for). David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!