Re:ES6 is beautiful
by douche on Thursday April 07, 2016 @03:11PM
(#11449778)
If that's what they are for, why call them "arrow functions", and not lambdas like everybody else does?
[ Parent
| on HN ]
Re:ES6 is beautiful
by TheCoelacanth on Thursday April 07, 2016 @04:47PM
(#11450580)
To distinguish from javascript's other longer way of writing the same thing:
[1, 2, 3, 4].map(function (x) { return x + 1; })
Re:ES6 is beautiful
by rhinoceraptor on Thursday April 07, 2016 @04:31PM
(#11450456)
Javascript already had lambdas/anonymous functions since the beginning.