arliss_obsidian/fp/Language/Infix Operators/Precedence.md
Orion Kindel 3701b1e2f8
update
2024-09-23 18:56:55 -05:00

368 B

Infix Operators must have a precedence, which tells the language in what order to group the expressions.

e.g. in this expression:

a + b == c

this behaves how you'd expect; this is equivalent to

((a + b) == c)

This is because the precedence of + (6) is higher than =='s (4), the grouping is first done around a + b.