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.
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.
That is true, but it is also important to understand operator precedence without using parentheses.