(sorry about any duplicates like this that show up.  I seem to have had posting 
delays yesterday that resulted in duplicate postings)

Allen

On Oct 18, 2011, at 6:31 PM, Allen Wirfs-Brock wrote:

> ES3 (and ES5) defines these grammar productions:
> 
> MemberExpression :
> 
>    PrimaryExpression
>    FunctionExpression
>    MemberExpression [ Expression ]
>    MemberExpression . IdentifierName
>  new MemberExpression Arguments
> 
> 
> PrimaryExpression :
> 
>    this
>    Identifier
>    Literal
>    ArrayLiteral
>    ObjectLiteral
>    ( Expression )
> 
> 
> FunctionExpression :
> 
>   function 
> 
> Identifieropt ( FormalParameterList ) { FunctionBody }
> 
> Does anybody know or see a good reason why FunctionExpression shouldn't be 
> move as a RHS of PrimaryExpression? MemberExpression is the only occurrence 
> of either PrimaryExpression or FunctionExpression on the RHS of a grammar 
> rule.
> 
> Function expressions were added in ES3. Were they just added at the wrong 
> place in the grammar?
> 
> Allen
> 
> 
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss@mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to