arrow function syntax simplified

Angus Croll anguscroll at gmail.com
Sun Apr 8 21:44:57 PDT 2012


Ha! nice catch :-)

My concern is with developers not knowing about the side effects of => and
therefore when to use it.

On Sun, Apr 8, 2012 at 4:09 PM, Kevin Smith <khs4473 at gmail.com> wrote:

> 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/c2292f96/attachment.html>


More information about the es-discuss mailing list