block lambda revival

Jon Zeppieri zeppieri at gmail.com
Wed May 25 08:44:18 PDT 2011


On Wed, May 25, 2011 at 11:06 AM, Brendan Eich <brendan at mozilla.com> wrote:
>
> One last thought: if you want to curry, always parenthesize all calls.
> Space-separated argument lists just do not look sufficiently "high
> precedence" when followed by (...) after, to treat
>   foo {|x| x} (bar)
> as
>   foo({|x| x})(bar)
> instead of
>   foo({|x| x}, bar)
> /be


Agreed. My comment was off-base. I don't expect currying here. I'm
more worried about the foo({|x| x}(bar)) interpretation.

That is to say, the different meanings of "(bar)" in

   {|x| x}(bar)
and
   foo {|x| x}(bar)

make me wince a bit.

-Jon


More information about the es-discuss mailing list