Strict mode recap

Lars Hansen lhansen at adobe.com
Fri Apr 11 08:04:25 PDT 2008


> -----Original Message-----
> From: zeppieri at gmail.com [mailto:zeppieri at gmail.com] On 
> Behalf Of Jon Zeppieri
> Sent: 11. april 2008 05:20
> To: Lars Hansen
> Cc: liorean; es4-discuss at mozilla.org
> Subject: Re: Strict mode recap
> 
> >  Apart from that there's no problem.  "var" is used to indicate  a 
> > mutable fixture property, but it is just a flag (as is "const").
> >  The primary form is just { ns::id: val }, which is a  
> straightforward 
> > evolution of the ES3 form { ns: val }.
> 
> Right, I get that, and Brendan's point was a good one.  I was 
> just thrown by the fact that I hadn't seen an example of
> 
> class A {
>   var public::count = 10;
> }
> 
> rather than
> 
> class A {
>   public var count = 10;
> }
> 
> But if the former is legal (and the grammar suggests that it 
> is), then there's no inconsistency.

It is not legal, and if the grammar suggests that it is then
the grammar is buggy.

--lars



More information about the Es4-discuss mailing list