Hi --

On Wed, 22 Oct 2008, Paul Brannan wrote:

> On Wed, Oct 22, 2008 at 04:01:45AM +0900, Dave Thomas wrote:
>> I'm trying to work out if -> has any additional functionality over
>> lambda.
>
> Can a lambda have default argument values?

Yes; I believe it's got the full complement of method argument
semantics at this point.

   lambda {|a,b=1,*c,d| ... }

etc.


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!