3 ms·
Come again, why is `i++` obviously an error when `i` is zero? I’d expect an arithmetic operation to fail if I, say, divide by 0. Not if I add 1 to zero! And j
by wodenokoto 4y ago
Come again, why is `i++` obviously an error when `i` is zero?
I’d expect an arithmetic operation to fail if I, say, divide by 0. Not if I add 1 to zero!
And just because behavior is documented doesn’t mean it’s not surprising or complicated.