ES Arrow functions are unhelpfully distinctive. No `arguments`. Implicit return unless you use `{}`. No `()` in param list unless zero-param
-
-
I know this but I don't like it.
-
Tweet unavailable
-
is Stanley too young for Ren and Stimpy references? (Btw that horse is literally me on twitter isn't it)
-
could be :P
-
fwiw I just opened my editor and happened on this. Kind of nice, I think.pic.twitter.com/9PqCNVWRMs
-
it is nice! That's why it should always be no parens, always implicit return,never require {}'s
- 3 more replies
New conversation -
-
-
What ever happened to the proposal for long returns in JS?
-
I lost that one before I even joined the committee. Still working on Rust though ;)
-
been thinking about it lately. Is it still just ruby and smalltalk that do it?
-
I will be sad if I can't get it into Rust. It'll require a bit of new syntax and opt-in, but worth it.
-
Is it going to be special syntax in Rust then?
-
I think
@aaron_turon thinks it might fall out of the distinction between `||` and `move ||` -- either way I want it
End of conversation
New conversation -
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.