Re:Arrow Functions Coming to Chrome 45
by egeozcan on Monday June 22, 2015 @01:24PM
(#9759790)
Regarding the example at the end of the post, how does it even make sense to allow an anonymous arrow function be a "paramater name" (yes!) of another anonymous function? I guess the empty object becomes a destructuring parameter that doesn't do anything but the function is confusing:
I can rewrite that to be more clear:
This is just a syntax error, I guess (hope)?
[ Parent
| on HN ]
Re:Arrow Functions Coming to Chrome 45
by SerpentJoe on Monday June 22, 2015 @02:56PM
(#9760417)
It is. You can try to translate the snippet using babel, it doesn't work unless you remove that parameter.