From: Sean O'Halpin Date: 2005-10-19T00:23:51+09:00 Subject: Re: Anonymous methods, blocks etc. (Cont. 'default block params') On 10/18/05, Austin Ziegler wrote: > Except that Matz still plans on making anonymous functions have closure > capabilities. Hmmm. I must have missed that. What does "closure capabilities" mean exactly? > This is why, after Dave Thomas suggested: > > anon = def(x = 5) > # implementation of anon > end > > I then suggested: > > anon = lambda(x = 5) > # implementation of anon > end > > To me, this is clearer than any of the other options that have been so > far suggested for anonymous functions. I was under the impression that it was anon = def(x = 5) ... end for def style semantics (i.e. 'true' anonymous function, opaque scope, etc.) and block = lambda(x = 5) ... end for closures. If so, then I would endorse these suggestions. Otherwise, I have to confess, I'm a little confused as to what the proposal for anonymous functions actually means. Regards, Sean