arrow function syntax simplified

Kevin Smith khs4473 at gmail.com
Sun Apr 8 16:09:15 PDT 2012


Which form has more brevity, then?

    // This?
    var withCircleUtilsFat = () => { ... };

    // Or this?
    function withCircleUtilsFat() { ... };

In any case, between object literal methods and arrow functions, I think
you'll find that the vast majority of your function expressions will get a
more concise syntax.

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120408/687b7a11/attachment.html>


More information about the es-discuss mailing list