Initializer expression on for-in syntax subject

Brendan Eich brendan at mozilla.com
Fri Mar 14 13:54:41 PDT 2014


Brendan Eich wrote:
>   for (var i = 0 in debug.audio)

BTW, ur-JS in Netscape would not parse this. The optional initializer 
fell out of grammar over-reuse in ES1, possibly also works-in-JScript 
lobbying (my memory fades but that is where it came from).

/be


More information about the es-discuss mailing list