block lambda revival
Brendan Eich
brendan at mozilla.com
Wed May 25 08:06:27 PDT 2011
On May 24, 2011, at 7:20 PM, Jon Zeppieri wrote:
> - Waldemar's "currying hazard" doesn't strike me so much as a hazard
> as it does expected behavior. But that might just be me.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110525/61a0925b/attachment.html>
More information about the es-discuss
mailing list