From: ES Date: 2005-10-19T03:19:59+09:00 Subject: Re: Anonymous methods, blocks etc. (Cont. 'default block params') Daniel Schierbeck wrote: > Sean O'Halpin wrote: > >>> It also seemed to me that Matz wasn't fond of the reuse of "def". >> >> Shame - I thought the lambda/def distinction was a good one. > > > Why not use lambda/function? > > func = function(x, y = 1) { do_something(x, y) } I originally suggested anon = lambda(foo = 'bar') {...} -or- anon = lambda(foo = 'bar') {|foo| ...} ...and it seems it still is the least offensive variation out there to most people. I am not quite sure I like (Austin's?) version from the roundtable: anon = lambda(foo = 'bar') ... end I think mine was better ;) I suppose this would indicate the 'special' nature better but I prefer the dovetailing to current syntax. > Cheers, > Daniel E