archives

« Bugzilla Issues Index

#1163 — RHS of for-of should be AssignmentExpression


The right-hand side of a for-of loop should be an AssignmentExpression. This future-proofs for simultaneous iteration such as:

http://wiki.ecmascript.org/doku.php?id=strawman:simultaneous_iteration

(It's also what people agreed to for paren-free comprehensions, although I am arguing for left-to-right comprehensions, which are not paren-free.)

Dave


fixed in rev 14 editor's draft


in Rev 14 draft