Mike Stay (2013-05-10T18:50:07.000Z)
github at esdiscuss.org (2013-07-12T02:27:22.334Z)
On Fri, May 10, 2013 at 12:36 PM, Brendan Eich <brendan at mozilla.com> wrote: > Agreed. JS ain't Scala. I wouldn't want it to be! And I agree that it makes sense for the array comprehensions to match the for-of semantics. > Note for Mike Stay, in case it helps a bit (just syntax): we agreed to use LTR order, so: > > ```js > [for (x of expr1) for (y of expr2(x)) result(x, y)] > ``` > > > to shorten your example a bit. OK, thanks. I suppose that with the arrow-functions, the boilerplate load drops tremendously. Is the ES6 spec too far along to introduce some other construct that would desugar to the above, or is there still time to create a proposal?