Re: ES4 stable draft: object initializers

2008-04-30 Thread Brendan Eich
On Apr 10, 2008, at 9:05 AM, Lars Hansen wrote: > Here is the third draft, which I have tentatively labeled as stable. > > Please note the OPEN ISSUES, the input of everyone on these would be > appreciated. No one has addressed this OPEN ISSUE: * The meta::prototype facility does not allow 'nu

Re: ES4 stable draft: object initializers

2008-04-30 Thread Brendan Eich
On Apr 17, 2008, at 5:15 PM, Erik Arvidsson wrote: > 2008/4/17 Brendan Eich <[EMAIL PROTECTED]>: >> These are wanted by Ajax library hackers, jresig and shaver >> testify. Rather >> than cut a long-standing proposal because a recent evolution of >> its *syntax* >> (not its substance) led to so

Re: ES4 stable draft: object initializers

2008-04-18 Thread Jon Zeppieri
On 4/10/08, Lars Hansen <[EMAIL PROTECTED]> wrote: > Here is the third draft, which I have tentatively labeled as stable. > > Please note the OPEN ISSUES, the input of everyone on these would be > appreciated. > * There is no way to seal the object created by an object >initializer, as a pr

RE: ES4 stable draft: object initializers

2008-04-18 Thread Lars Hansen
th Firefox. --lars From: Jeff Dyer Sent: 18. april 2008 06:34 To: Brendan Eich Cc: Lars Hansen; es4-discuss@mozilla.org Subject: Re: ES4 stable draft: object initializers

Re: ES4 stable draft: object initializers

2008-04-18 Thread Jeff Dyer
On 4/17/08 2:13 PM, Brendan Eich wrote: > These are wanted by Ajax library hackers, jresig and shaver testify. Rather > than cut a long-standing proposal because a recent evolution of its *syntax* > (not its substance) led to something problematic, why not return to the > original syntax: > >

Re: ES4 stable draft: object initializers

2008-04-17 Thread Erik Arvidsson
2008/4/17 Brendan Eich <[EMAIL PROTECTED]>: > These are wanted by Ajax library hackers, jresig and shaver testify. Rather > than cut a long-standing proposal because a recent evolution of its *syntax* > (not its substance) led to something problematic, why not return to the > original syntax: Yes,

Re: ES4 stable draft: object initializers

2008-04-17 Thread Brendan Eich
On Apr 17, 2008, at 4:06 PM, Jeff Dyer wrote: The catchall syntax seems heavy handed for the use cases it serves. It introduces new syntax, not just special meaning for ‘meta’ qualified names, and it is otherwise possible to create object values with catchalls by using classes. I propose

RE: ES4 stable draft: object initializers

2008-04-17 Thread Lars Hansen
Presumably that would be __proto__ so that we would not be gratuitously incompatible with Firefox. --lars > -Original Message- > From: Jeff Dyer > Sent: 17. april 2008 16:12 > To: Waldemar Horwat; Lars Hansen > Cc: es4-discuss@mozilla.org > Subject: Re: ES4 st

Re: ES4 stable draft: object initializers

2008-04-17 Thread Jeff Dyer
On 4/15/08 4:38 PM, Waldemar Horwat wrote: > The grammar doesn't work: > > {meta::prototype:17} > can be parsed as either a FieldName or as the meta::prototype production. To > make parsing unambiguous you can't allow "meta" to be included in > AnyIdentifier (or implement some other similar f

Re: ES4 stable draft: object initializers

2008-04-17 Thread Jeff Dyer
The catchall syntax seems heavy handed for the use cases it serves. It introduces new syntax, not just special meaning for Œmeta¹ qualified names, and it is otherwise possible to create object values with catchalls by using classes. I propose that we remove the productions that begin with ³meta::

Re: ES4 stable draft: object initializers

2008-04-15 Thread liorean
On 16/04/2008, Waldemar Horwat <[EMAIL PROTECTED]> wrote: > There is also another ambiguity in the grammar: > > var {x:y, p:q} = expr; > > is both an assignment expression statement and a destructuring variable > binding statement. An assignment to an object literal seems like total bogus thoug

Re: ES4 stable draft: object initializers

2008-04-15 Thread Waldemar Horwat
There is also another ambiguity in the grammar: var {x:y, p:q} = expr; is both an assignment expression statement and a destructuring variable binding statement. Waldemar ___ Es4-discuss mailing list Es4-discuss@mozilla.org https://mail.mozilla.or

Re: ES4 stable draft: object initializers

2008-04-15 Thread Waldemar Horwat
My comments: The grammar doesn't work: {meta::prototype:17} can be parsed as either a FieldName or as the meta::prototype production. To make parsing unambiguous you can't allow "meta" to be included in AnyIdentifier (or implement some other similar fix). Class type discussion: Do the prop

ES4 stable draft: object initializers

2008-04-10 Thread Lars Hansen
Here is the third draft, which I have tentatively labeled as stable. Please note the OPEN ISSUES, the input of everyone on these would be appreciated. --lars Title: Object initializers Object initializer syntax NAME: "Object initializer syntax" FILE: