lexical for-in/for-of loose end
erik.arvidsson at gmail.com
Mon Jan 30 21:39:20 PST 2012
On Mon, Jan 30, 2012 at 18:38, Brendan Eich <brendan at mozilla.org> wrote:
> I think we should break unconditionally and forbid =i in for(var x=i in o)
> too, but that is a separate issue. This botch in grammar factoring is a
> (bad) sunk cost that has zero bearing on the fresh let binding per iteration
> idea. It's terrible anti-precedent. Just say no.
No initializer in for-in with let.
I agree with Brendan, I think we can get rid of the initializer even
for for-in with var. The only code I've seen that uses this is in ES
More information about the es-discuss