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

Comments

Projects
None yet
2 participants
@cscott

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

This comment has been minimized.

Show comment
Hide comment
@cscott

cscott 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.

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

This comment has been minimized.

Show comment
Hide comment
@sunfishcode

sunfishcode Jun 4, 2014

Collaborator

This was addressed in 7881fbe.

Collaborator

sunfishcode commented Jun 4, 2014

This was addressed in 7881fbe.

@sunfishcode sunfishcode closed this Jun 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment