2 Comments
User's avatar
Gordon's avatar

Operator precedence needs to be understood and thought about when reading code where parenthesis are not used. The lack of parenthesis makes the code harder to read and open to misinterpretation. Therefore, it is always better to use parenthesis, even when not necessary.

Expand full comment
Benjamin Bennett Alexander's avatar

That is true, but it is also important to understand operator precedence without using parentheses.

Expand full comment