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

Remove all ++ and -- operators #1526

Closed
marcusnaslund opened this issue Mar 13, 2016 · 0 comments
Closed

Remove all ++ and -- operators #1526

marcusnaslund opened this issue Mar 13, 2016 · 0 comments
Assignees
Milestone

Comments

@marcusnaslund
Copy link
Contributor

++variable is semantically +(+(variable)) and generates the C code ++variable because of no special-casing. On the other hand, variable++ simply doesn't parse.

The fact that ++variable actually works is a mistake/bug in rock and will be fixed soon - see ooc-lang/rock#982

Therefore, we should avoid it all-together. It is confusing in itself that ++variable works but variable++ does not.

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