arrow function syntax simplified

Kevin Smith khs4473 at
Wed Mar 28 12:26:28 PDT 2012

> - Incorrectly using "return" for those that don't fully understand TCP.

As an illustration, consider this case:

    element.onclick = (evt) => do {

        if (this.alreadyWaitingForAjaxResponse)


Presumably the early return will throw an exception, since the binding
context has exited before the event handler is called.  (Please correct me
if I'm wrong.)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list