archives

« Bugzilla Issues Index

#1253 — Comprehensions/Generator Syntax: RTL -> LTR change.


Per Jan 2013 resolution:

-All agree on RTL -> LTR change.

Dave Herman's proposal is here: https://gist.github.com/dherman/b250d1fad15dbb5f77a5


Grammar:

ArrayLiteral ::= ... | "[" Comprehension "]"
PrimaryExpression ::= ... | "(" Comprehension ")"
Comprehension ::= ForComprehensionClause ComprehensionClause* Expression
ComprehensionClause ::= ForComprehensionClause
| IfComprehensionClause
ForComprehensionClause ::= "for" "(" LHSExpression "of" Expression ")"
IfComprehensionClause ::= "if" "(" Expression ")"




https://github.com/rwldrn/tc39-notes/blob/master/es6/2013-01/jan-31.md#comprehensionsgenerator-syntax


syntax update in rev 14

semantics still need to be incorporated into spec.


fixed in rev15 editor's draft


resolved in rev 15, May 14, 2013 draft