Shorter syntax for arrow function assignment

Brian Blakely anewpage.media at gmail.com
Tue Oct 24 16:10:59 UTC 2017


A prevalent pattern has emerged:

`export const foo = ()=> { };`

Taking a cue from short method syntax, this comes to mind as a possible
improvement:

`export const foo() { };`

Even better if we assume const:

`export foo() { };`

That is delicious.  Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171024/36246425/attachment.html>


More information about the es-discuss mailing list