Expression closures - use-cases for shortcut lambda syntax (blocks)

Daniel C. Wang danwang74 at gmail.com
Fri Mar 16 01:49:04 PDT 2007


why not
{(x,y) \  x + y }
then it would be
ajax(url, { (response)  \
                   // do something });

... you can then consider introducing

{ (x,y) |   x % 2 == y}

which just constrains the body to be a predicated!







More information about the Es4-discuss mailing list