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

General precedence rule #20

Closed
favonia opened this Issue Mar 5, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@favonia
Contributor

favonia commented Mar 5, 2015

The upcoming Agda 4.3 no longer has a default fixity/precedence for operators and syntax (which was infix 20 and infix -666, respectively, I believe). In order to make the current code compile we need to put in many fixity/precedence declarations. I would like to take this opportunity to propose the following general rules for precedence:

  1. Separators _$_ and arrows: 0
  2. Layout combinators (equational reasoning): 10-15
  3. Equalities, equivalences: 30
  4. Other relations, operators with line-level separators: 40
  5. Constructors (for example _,_): 60
  6. Binary operators (including type formers like _×_): 80
  7. Prefix operators: 100
  8. Postfix operators: 120

Any suggestions or comments?

@favonia favonia changed the title from Fixity to General precedence rule Mar 5, 2015

@andrejbauer

This comment has been minimized.

Show comment
Hide comment
@andrejbauer

andrejbauer Mar 6, 2015

Member

Yes, multiply all numbers in your list by 10.

Member

andrejbauer commented Mar 6, 2015

Yes, multiply all numbers in your list by 10.

@favonia

This comment has been minimized.

Show comment
Hide comment
@favonia

favonia Mar 27, 2015

Contributor

I am going to implement this with @andrejbauer's suggestion.

Contributor

favonia commented Mar 27, 2015

I am going to implement this with @andrejbauer's suggestion.

@favonia favonia closed this in 91d4e8d Mar 27, 2015

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