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

Dart specification should list conditional operator as right-associative in summary table #7377

Closed
whesse opened this issue Dec 13, 2012 · 3 comments
Assignees
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language).

Comments

@whesse
Copy link
Contributor

whesse commented Dec 13, 2012

The summary table in the appendix of the Dart specification lists the operators and their precedence. The conditional operator is listed with associativity: none, while it really is right associative, according to the grammar. This applies to the example

a ? b : c ? d : e, which is parsed as
a ? b : (c ? d : e), not as
(a ? b : c) ? d : e.

@anders-sandholm
Copy link
Contributor

Added Area-Language label.

@whesse
Copy link
Contributor Author

whesse commented Nov 4, 2013

cc @gbracha.
Removed Priority-Low label.
Added Priority-Medium label.

@gbracha
Copy link
Contributor

gbracha commented Jan 2, 2015

Set owner to @gbracha.
Added Done label.

@whesse whesse added Type-Defect area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). labels Jan 2, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Projects
None yet
Development

No branches or pull requests

4 participants