3 ms·
While I agree that having both pre- and post- versions is confusing overkill, ++ is no more sugar for x += 1 than x+x is sugar for x*2. Increment is the fundam
by bcoates 11y ago
While I agree that having both pre- and post- versions is confusing overkill, ++ is no more sugar for x += 1 than x+x is sugar for x*2.
Increment is the fundamental operation, += is sugar for repeated incrementation, not the other way around.