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

Simple character save on +=1 and -=1 #65

Open
Woccz opened this issue Jun 21, 2021 · 2 comments
Open

Simple character save on +=1 and -=1 #65

Woccz opened this issue Jun 21, 2021 · 2 comments
Labels
backlog Good idea but bad effort to value ratio right now enhancement New feature or request

Comments

@Woccz
Copy link
Contributor

Woccz commented Jun 21, 2021

Pending #48

image

Don't think it should be hard to implement.

Thank you.

@Woccz Woccz added the enhancement New feature or request label Jun 21, 2021
@dbaumgarten
Copy link
Owner

This is only safe to to, if the compiler is absolutely certain that a is not a string.
Because for strings ++ is not then same as +=.

Therefore #48 would need to be done first

@Woccz
Copy link
Contributor Author

Woccz commented Jun 21, 2021

Noted.

An equivalent but uncommon optimisation could also be implemented at the same time for strings:
x+=" "x++.

@dbaumgarten dbaumgarten added the backlog Good idea but bad effort to value ratio right now label Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Good idea but bad effort to value ratio right now enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants