> > x.map(factorial(x) => do { > if (x <= 1) { > 1; > } else { > x * factorial(x - 1) > } > }); >
This has been discussed over the years but there has been very little interest in making the grammar more complicated. After all, you can always just assign the arrow function to a locally-scoped variable. And as Daniel pointed out, this suggestion actually conflicts with async arrow functions. Kevin
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss