Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ES7 Array comprehensions #125

Closed
smehrbrodt opened this issue Apr 10, 2015 · 3 comments
Closed

Support ES7 Array comprehensions #125

smehrbrodt opened this issue Apr 10, 2015 · 3 comments
Labels

Comments

@smehrbrodt
Copy link

@smehrbrodt smehrbrodt commented Apr 10, 2015

Array comprehensions like

[ x for (x of a) if (x.color === ‘blue’) ]

should be supported.

Here's more information: http://wiki.ecmascript.org/doku.php?id=harmony:array_comprehensions

It's already supported by Firefox and some transpilers (Babel and Traceur), so we're already using them.

@nzakas
Copy link
Member

@nzakas nzakas commented Apr 28, 2015

I'll leave this under consideration. We're not going to implement any ES7 features until they are standardized.

@vanwagonet
Copy link

@vanwagonet vanwagonet commented May 5, 2015

I would recommend against using them, because they are at stage 0 (strawman proposal), and may not get standardized.

See: https://twitter.com/esdiscuss/status/590226685020090369

@smehrbrodt
Copy link
Author

@smehrbrodt smehrbrodt commented May 13, 2015

Ok, thanks for the clarification. I'll close this issue then.

@smehrbrodt smehrbrodt closed this May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants