>Also, you cannot implicitly omit the "const" Paving a cowpath, const has won named function assignment.
On Tue, Oct 24, 2017 at 1:16 PM, dante federici <c.dante.feder...@gmail.com> wrote: > My major concern is this can be confusing with the "this" binding. > The object wrapping being the only difference between: > ``` > // Existing: > const x = { > myFn() { } > }; > > // Proposed, with different meaning: > const myFn() { } // Why would "this" bind to myFn? > ``` > Omitting the arrow is a major -1 for me -- the whole point of "=>" is that > it does not provide a "this" to the scope of the function body. > > Also, you cannot implicitly omit the "const", as these are all valid: > ``` > export var symbol = ... > export let symbol = ... > export const symbol = ... > ``` > > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss