Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved a reference to Related Guidelines

...

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 2000]Rule 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

[Rogue 2000]

Rule 77: Clarify the order of operations with parentheses