3 ms·
Knowing the precedence and knowing it well is necessary so that you can read code quickly and accurately. Not so that you can write code using the minimum numbe
by kazinator 7y ago
Knowing the precedence and knowing it well is necessary so that you can read code quickly and accurately. Not so that you can write code using the minimum number of parentheses.
Sometimes, even when you have the power to add parentheses to existing code and merge the commit, you still have to know what the unmodified code is doing: just so that you're sure your readability improvement is not changing the behavior, for one thing!
You can be looking up precedence tables all the time, or adding prints to test things empirically run-time.