From: Eric Mahurin Date: 2008-05-27T21:11:00+09:00 Subject: Re: [PATCH] lambda with normal block syntax ------=_Part_14694_4194602.1211890307561 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, May 27, 2008 at 4:49 AM, David A. Black wrote: > Maybe the same rule could be applied to {||...} lambda objects (as > opposed to the code block) that is now applied to hashes: > > meth {} # code block > meth({}) # one hash argument > meth {||} # code block > meth({||}) # one lambda object argument That's exactly what this patch does. And what ruby 1.9 did from r8044 to r8846 ("->" came with r8847). ------=_Part_14694_4194602.1211890307561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, May 27, 2008 at 4:49 AM, David A. Black <dblack@rubypal.com> wrote:
Maybe the same rule could be applied to {||...} lambda objects (as
opposed to the code block) that is now applied to hashes:

 meth {}     # code block
 meth({})    # one hash argument
 meth {||}   # code block
 meth({||})  # one lambda object argument

That's exactly what this patch does. And what ruby 1.9 did from r8044 to r8846 ("->" came with r8847).

------=_Part_14694_4194602.1211890307561--