Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 345 Bytes

binary-expression-operand-order.md

File metadata and controls

11 lines (6 loc) · 345 Bytes

Pattern: Wrong operand order in binary expression

Issue: -

Description

In a binary expression, a literal should always be on the right-hand side if possible. For example, prefer x + 1 over 1 + x.

Further Reading