Unpopular <opinion>: I prefer the JS syntax prior to ES6. Fat arrows? Not a fan. I still write `function()` and think it is way more. Minimal syntax does not automatically lead to more readable code. But hey this is just my </opinion> *ducks*
-
-
It's funny to see how be ES features are branded to devs, I personally use arrow function for the non-context binding not for aesthetics
End of conversation
New conversation -
-
I think that would be better if and only if blocks started returning the last expression. I use implicit return all the time now. But it's kind of a shame arrow functions have become so easy to type relative to old es5 functions that they're used in places they don't need to be.
-
Single-expression blocks (like above) do.
- 4 more replies
New conversation -
-
-
Yes. It allows a developer to add a debugger if needed.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I also wish the implicit return was for the block and not just expression usage... So in my own code I lint for anything other than requiring the brackets and braces.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.