Skip to content

Implement for loops #41

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

Open
omdxp opened this issue Mar 27, 2025 · 0 comments
Open

Implement for loops #41

omdxp opened this issue Mar 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@omdxp
Copy link
Owner

omdxp commented Mar 27, 2025

Is your feature request related to a problem? Please describe.
There are no for loops at the moment.

Describe the solution you'd like
Implement for loops for more sophisticated and readable code.

Additional context
Potential sample code:

// for range
for i : 0..10 {
  printf("%d\n", i);
}

// for array
num[] arr = [1, 2, 3];
for item : arr {
  printf("%d\n", item);
}

for i, item :: arr {
  printf("arr[%d]=%d\n", i, item);
}
@omdxp omdxp added the enhancement New feature or request label Mar 27, 2025
@omdxp omdxp moved this to Backlog in fun Mar 27, 2025
@omdxp omdxp added this to fun Mar 27, 2025
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
Status: Backlog
Development

No branches or pull requests

1 participant