The use of parentheses here does not affect the code, because the evaluation order is the same with and without parentheses. You are correct that parentheses take precedence over -. However, in this case, the brackets will not change the order of evaluation, because you did not group the operands in a different order than they could naturally evaluate.
source share