Why isn't FunctionExpression a PrimaryExpression?

Waldemar Horwat waldemar at google.com
Thu Nov 3 14:33:24 PDT 2011


On 10/19/2011 08:16 AM, Allen Wirfs-Brock wrote:
> Does anybody know or see a good reason why FunctionExpressionshouldn't be move as a RHS of PrimaryExpression? MemberExpressionis the only occurrence of either PrimaryExpressionor FunctionExpressionon the RHS of a grammar rule.

As you note, the two grammars are equivalent, so this is a purely aesthetic choice.  I agree that putting FunctionExpression inside PrimaryExpression is more pleasing.

     Waldemar


More information about the es-discuss mailing list