I've seen that in a number of loops and increments. Instead of doing i++ they do i += 1. Why is this?
Not all languages have ++ operator (python, for one)... Probably these people come from a background in one of those languages. Also some people feel that i++ is not very clear, especially since some languages treat i++ and ++i differently.
Personal preference and style.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With