operator precedence

Operator precedence

Cyan has special precedence rules for methods and operators whose names are the symbols given.

||
~||
&&
=> ==>
!
== <= < > >= != === !== <=> ~=
-- non-unary message send
|>
++ -- (binary)
.. ..<
+ -
/ * %
||| ~| &
<.< >.> >.>>
.* .+ .% -- unary message send + - ! ~ (unary)

The precedence is applied to every message send that uses some of these symbols. So a message sent

x + 1 < y + 2

will be considered as if it was

(x + 1) < (y + 2)