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

descending for loops #3

Closed
thetawom opened this issue Apr 28, 2022 · 1 comment
Closed

descending for loops #3

thetawom opened this issue Apr 28, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@thetawom
Copy link
Owner

Currently for loops only work when ascending (i.e. for positive increments) because the compiler uses the lte comparison operator. Would be nice to have it work for negative increments as well. One idea is to require the increment to be an integer and not an expression so that its sign can be easily checked for at compile time and the appropriate comparison operator used.

@thetawom thetawom added the enhancement New feature or request label Apr 28, 2022
@thetawom thetawom self-assigned this May 5, 2022
@thetawom
Copy link
Owner Author

thetawom commented May 5, 2022

Done!

@thetawom thetawom closed this as completed May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant