2 ms·
`<` communicates the intent way better. It also more readable Example: The loop should run as long as the counter is smaller than 10. `i /= 10` achieves the sa
by rowanG077 3y ago
`<` communicates the intent way better. It also more readable
Example: The loop should run as long as the counter is smaller than 10. `i /= 10` achieves the same thing but communicates something very different. It implies `i` may be changed inside the loop to become larger than 10. The condition itself implies a larger valid state space.
It's a moot point anyway. Modern languages have much better looping constructs.