Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec should allow arbitrary parentheses around expressions (section 4). #65

Closed
cscott opened this issue Jun 7, 2013 · 2 comments
Closed

Comments

@cscott
Copy link

cscott commented Jun 7, 2013

In the general syntax rules, the spec should mention that arbitrary parentheses should be permitted. That is, if the syntax rule in the spec says:

x:Identifier = +x:Identifier;
it is intended that the following all match this rule:
x = +x;
x = +(x);
x = +((((x))));

@cscott
Copy link
Author

cscott commented Jun 10, 2013

You should also be clear whether parentheses are allowed around local function definitions, since those could in theory be parsed either as statements or as expressions. I believe the ECMAScript grammar causes them to be parsed as statements, therefore parenthesization is not allowed, but this should be specifically stated.

@sunfishcode
Copy link
Collaborator

This was addressed in 7881fbe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants