with

David Herman dherman at mozilla.com
Thu Nov 17 06:39:08 PST 2011


On Nov 17, 2011, at 6:26 AM, Mike Samuel wrote:

> 2011/11/17 David Herman <dherman at mozilla.com>:
>>    obj with { foo: 12 } with { bar: 13 } with { baz: 17 }
> 
> Does the below fit your syntax and isn't it lexically ambiguous with
> the old "with"?
> 
> obj
> with ({ foo: 12 })
> {}

This was discussed above; there's no ambiguity if the new language doesn't have with statements. Quildreen and Dmitry have both objected to the confusion to the reader caused by the ambiguity between language versions, though.

Dave



More information about the es-discuss mailing list