optional "function" keyword

Russell Leggett russell.leggett at gmail.com
Wed Mar 7 14:06:04 PST 2012


On Wed, Mar 7, 2012 at 4:56 PM, Isaac Schlueter <i at izs.me> wrote:

> This might be a dumb question: TCP = "this-context preservation"?
> (Sorry, my brain has that acronym hard-linked to "Transport Control
> Protocol" and I keep getting confused.)
>
>  TCP = Tennent's Correspondence Principle

Yehuda Katz has a great explanation here:
http://yehudakatz.com/2012/01/10/javascript-needs-blocks/

tl;dr; It means that among other things, a return from the block would
actually return from the outer function, not just the anonymous function.
It lets you create stronger control abstractions.

- Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120307/0ad262fb/attachment.html>


More information about the es-discuss mailing list