ES4 draft: Object initializers

Lars Hansen lhansen at adobe.com
Fri Mar 21 10:03:35 PDT 2008


Another feature I forgot to include is ticket #370, the type annotation
on an object initializer can be a nominal type in some cases.  (The trac
seems to be down, so I can't quote details.  Anyhow I'm not sure if this
ticket was ever discussed in a meeting, so it remains speculative.) 

--lars

> -----Original Message-----
> From: es4-discuss-bounces at mozilla.org 
> [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Lars Hansen
> Sent: 21. mars 2008 08:19
> To: es4-discuss at mozilla.org
> Subject: RE: ES4 draft: Object initializers
> 
> A bug: repeated fields are also disallowed if the object 
> initializer has a type annotation.
> 
> In summary, only object initializers that look like ES3 
> initializers are allowed to have repeated fields (for 
> backward compatibility).
> 
> --lars
> 
> > -----Original Message-----
> > From: es4-discuss-bounces at mozilla.org 
> > [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Lars Hansen
> > Sent: 20. mars 2008 16:43
> > To: es4-discuss at mozilla.org
> > Subject: ES4 draft: Object initializers
> > 
> > I've attempted to sum up everything we have decided about object 
> > initializers (aka object literals).  A short draft spec is included.
> > Comments welcome from everyone, especially from ES4 WG members who 
> > might remember about things I've forgotten, or correct 
> > misunderstandings.
> > 
> > --lars
> > 
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es4-discuss
> 



More information about the Es4-discuss mailing list