Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Detection of all expressions using low-precedence operators without parentheses is straightforward. Determining the correctness of such uses is infeasible in the general case; heuristic warnings could be useful.

Related Guidelines

Rogue 2000Rule 77, Clarify the order of operations with parentheses

Bibliography

[ESA 2005]

Rule 65, Use parentheses to explicitly indicate the order of execution of numerical operators

[Tutorials 2008]

Expressions, Statements, and Blocks
Operators

...