There is a specific order of priority for operators being called (also including their element-wise equivalents):
- Syntax (. followed by ::)
- Exponentiation (^)
- Fractions (//)
- Multiplication (*, /, %, &, and \)
- Bitshifts (<<, >>, and >>>)
- Addition (+, -, |, and $)
- Syntax (:, .., and |>)
- Comparisons (>, <, >=, <=, ==, ===, !=, !==, and <:)
- Control flow (&& followed by || followed by ?)
- Assignments (=, +=, -=, *=, /=, //=, \=, ^=, ÷=, %=, |=, &=, $=, <<=, >>=, and >>>=)