ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Implement generator and array comprehensions #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Presumably using the new syntax per

https://gist.github.com/dherman/b250d1fad15dbb5f77a5

    let array = [for (x of itr) if (x>0) x]

Original issue reported on code.google.com by dome...@domenicdenicola.com on 4 Mar 2013 at 6:04

GoogleCodeExporter commented 9 years ago
Sorry, I forgot to turn on "experimental" in the online compiler. Now how do I 
close this bug...

Original comment by dome...@domenicdenicola.com on 4 Mar 2013 at 6:10

GoogleCodeExporter commented 9 years ago
Comprehensions do not need experimental, only let.

Original comment by arv@chromium.org on 5 Mar 2013 at 5:06