processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

Explanation of `+=`

Open soegaard opened this issue 4 years ago • 0 comments

Issue description

The documentation of += states the syntax is:

value1 += value2 I suggest changing this to:

identifier += expression or perhaps

variablename += expression

The problem is that identifiers (variablenames) aren't values. Also the righthand side is not restricted to literals - the right hand side can be any expression.

URL(s) of affected page(s)

https://processing.org/reference/addassign.html

Proposed fix

soegaard avatar Jun 13 '21 21:06 soegaard