Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jvasileff opened this issue Oct 4, 2016 · 0 comments
Open
Milestone

Comments

@jvasileff
Copy link
Owner

jvasileff commented Oct 4, 2016

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 jvasileff modified the milestones: DP5, DP4 Oct 4, 2016
@jvasileff jvasileff modified the milestones: DP4, DP5 Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant