ES6 doesn't need opt-in

Brendan Eich brendan at mozilla.com
Tue Jan 3 16:42:42 PST 2012


On Jan 3, 2012, at 4:38 PM, Allen Wirfs-Brock wrote:

>> ArrayBindingPattern :
>> 	[ Elision<opt> BindingRestElement<opt> ]
>> 	[ BindingElementList , Elision<opt> BindingRestElement<opt> ]
> 
> It's a grammar bug.  Thanks for the proof reading...

The final <opt> cited above is the bug, right?

The first right-hand side still is enough to produce the [x] pattern.

/be



More information about the es-discuss mailing list