ceylon-dart icon indicating copy to clipboard operation
ceylon-dart copied to clipboard

optimize ++, --, +=, etc. operators for qualified expression targets

Open jvasileff opened this issue 8 years ago • 0 comments

While not specified AFAICT, expressions like:

obj.attribute++

and

obj.attribute += 1

should evaluate obj only once. This especially matters if obj has side effects.

Edit: and for postfix increment and decrement operators, attribute should only be evaluated once.

jvasileff avatar Oct 04 '16 21:10 jvasileff