Analysis of information sources in references of the Wikipedia article "Syntactic sugar" in English language version.
However, the compound-assignment expression is not equivalent to the expanded version because the compound-assignment expression evaluates expression1 only once, while the expanded version evaluates expression1 twice: in the addition operation and in the assignment operation.
optimization can [be done] if 'finding x' has no side effects