Array/Generator Comprehensions in Harmony

Andy Wingo wingo at igalia.com
Fri Jun 13 01:08:53 PDT 2014


On Fri 13 Jun 2014 08:35, Isiah Meadows <impinball at gmail.com> writes:

> Would array and generator comprehensions in Harmony support functions
> returning void (i.e. functions with either `return;` or an implicit
> return) being called in the AssignmentOperator part of the Comprehension
> statement, like a forEach combined with map, or would it throw an error,
> making it effectively syntactic sugar for Array.prototype.map()? 

It is tough to know what you are asking without an example.  If you
would like to try it yourself, Firefox 30 has comprehensions as
currently specified.  It seems likely comprehensions get punted, though
(not that I think this is the right thing ;).

Andy


More information about the es-discuss mailing list