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

Support reverse range loop #256

Open
katat opened this issue Jan 4, 2025 · 1 comment
Open

Support reverse range loop #256

katat opened this issue Jan 4, 2025 · 1 comment
Labels

Comments

@katat
Copy link
Collaborator

katat commented Jan 4, 2025

The compiler can detect the order of the iteration based on the supplied start and end ranges.

For example:

let start = 9;
let end = 0;
// it should start from the 9 to 0 for iteration order
for start..end {
 ...
}
@katat katat added the easy label Jan 4, 2025
@varun-doshi
Copy link

I can take this up with some more information about where to add this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants