2 ms·
At least Python will give you a diagnostic. Ruby is worse; even with parentheses ... salary = 100500 newsalary = (salary * 0.02 + salary) newsal
by emmelaich 5y ago
At least Python will give you a diagnostic. Ruby is worse; even with parentheses ...
salary = 100500
newsalary = (salary * 0.02
+ salary)
newsalary will the same as salary. There are no diagnostics.
Yes, you can fix it by moving the + up a line but this should be a purely style thing, not semantics.