@adamnash
@tunguz
I don't write code that is dependent on the order of pre/post-increment. There were a few times where I swear it wasn't behaving as expected, and I broke my logic and arithmetic into separate lines. Probably I was making some other error, still can't bring myself to do it.
@adamnash
@tunguz
These four operations do different things. You should use the one appropriate for the situation rather than just blindly always using a favourite.
@adamnash
@tunguz
If โiโ is a C++ object with the overload operator โType& operator++();โ, ++i can be faster than i ++ because it return the current value quote and the i++ return the value of i before inc, so i++ need to copy the value before inc. Thatโs why I love ++i