Banjo

52 thoughts
last posted Nov. 9, 2015, 7:13 p.m.

12 earlier thoughts

0

Partial ordering of operators

Something else from Fortress is that operators are partially ordered for precedence - that is, there are some pairs of operators which cannot have their precedence compared and must be wrapped in parentheses. This can help require parentheses in "strange" situations, like mixing boolean, bitwise, and arithmetic operators. Expressions like 3 & 2 * 7 are pretty confusing. I get the impression Fortress might report an error/warning in this case.

39 later thoughts