Re: 'var' legal in for..in?

2015-03-23 Thread Brendan Eich
You may be thinking of the change to make the var's intiialiser, e.g., for (var x = i in o) ... illegal in ES6. /be Mark Ethan Trostler wrote: Howdy, Is this legal ES6 syntax: for (var x in [ 1,2,3 ] ) { ... } //? Can the 'var' be in there? There was alleged talk at some point about

Re: 'var' legal in for..in?

2015-03-23 Thread Mark Ethan Trostler
Yes that was it thanks! Mark On Mon, Mar 23, 2015 at 8:24 AM, Brendan Eich bren...@mozilla.org wrote: You may be thinking of the change to make the var's intiialiser, e.g., for (var x = i in o) ... illegal in ES6. /be Mark Ethan Trostler wrote: Howdy, Is this legal ES6 syntax:

'var' legal in for..in?

2015-03-23 Thread Mark Ethan Trostler
Howdy, Is this legal ES6 syntax: for (var x in [ 1,2,3 ] ) { ... } //? Can the 'var' be in there? There was alleged talk at some point about making that illegal? Hard to tell from looking at the spec thanks!! Mark ___ es-discuss mailing

Re: 'var' legal in for..in?

2015-03-23 Thread Allen Wirfs-Brock
On Mar 23, 2015, at 2:45 PM, Mark Ethan Trostler m...@zzo.com mailto:m...@zzo.com wrote: Howdy, Is this legal ES6 syntax: for (var x in [ 1,2,3 ] ) { ... } //? Can the 'var' be in there? There was alleged talk at some point about making that illegal? Hard to tell from looking at