When defining a function, which and why?
-
-
Also no wonky lifting of the definition, so the closure works as expected.
1 reply 0 retweets 2 likes -
Replying to @metromoxie @fugueish
For local closures, => is better because it captures `this` in a sane way. For globals, that and lifting don't matter.
1 reply 0 retweets 1 like -
Ah, you and your new-fangled ES6 syntax. Give me 'function' or give me death!
#ES3Lyfe1 reply 0 retweets 1 like -
Also, way to ask for our opinion and then tell us why we're wrong ;-)
2 replies 0 retweets 1 like -
Replying to @metromoxie
You're not wrong; my question was imprecise. And
@fugueish's point is reasonable even for globals although maybe not strong enuf1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.