Array/Generator Comprehensions in Harmony

# Isiah Meadows (11 years ago)

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()?

# Andy Wingo (11 years ago)

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 ;).