This lessons mentions, in passing, the general form for assigning a new value to a variable based on its existing value:
i++ is the equivalent of
i = i + 1
I.e., the form of
variable = variable <operator> <expression>
Should this technique be explicitly explained, either in this lesson or a prior one? I only ask because when I first learned this paradigm many years ago it seemed pretty strange at the time. How can I have the same variable on both sides of the equals sign? Doesn’t that create some kind of weird infinite loop? Such were my questions back then
Anyway, what do you guys think? Did any of you trip up on this when you were learning?