Short Functions

Brendan Eich brendan at mozilla.com
Sun May 22 07:27:08 PDT 2011


On May 22, 2011, at 7:12 AM, Claus Reinke wrote:

> Again, this is just guessing based on reading the examples in the strawman - it could be completely off the mark. Informal but complete semantics would help to understand what is supposed to be possible and what not. Further decisions cannot be based on syntax or selected examples alone.

Your examples all look correct at a glance. As you show, the return, break, or continue must nest within the "container" required for that statement in a regular block, as for a block-lambda. But your examples nicely show abstraction away from actual block arguments using let-bound local variables. (This will be less optimized in advanced implementations, but no worries.)

/be

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110522/1f09f5e8/attachment.html>


More information about the es-discuss mailing list