3 ms·
While this is a common idiom, I do think it is bad from a maintainability standpoint. Let’s say in the future you need to change make a change, and the value of
by wycy 8y ago
While this is a common idiom, I do think it is bad from a maintainability standpoint. Let’s say in the future you need to change make a change, and the value of a becomes the elemental sum of the vectors b and c.
a = b[i++] + c[i++]
Errors like this are more avoidable by avoiding this sort of syntactical compression.
a = b[i] + c[i]
i += 1