Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created September 22, 2013 19:28
Show Gist options
  • Save chris-martin/6662979 to your computer and use it in GitHub Desktop.
Save chris-martin/6662979 to your computer and use it in GitHub Desktop.

Scala operator precedence rules

The precedence of an operator is determined by its first character.

Characters in increasing order of priority precedence

  • All letters
  • |
  • ^
  • &
  • < >
  • = !
  • :
  • + -
  • * / %
  • All other special characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment