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

exercises: use new for loop syntax #312

Merged
merged 7 commits into from
Sep 14, 2023

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Sep 8, 2023

Zig 0.11.0 added new for loop syntax. Prefer to loop over a range, which avoids some variables.

For more discussion, see Loris' blog post.

Refs: #313

@ee7 ee7 force-pushed the exercises-prefer-new-for-loop branch from 83b07d0 to 3aaec70 Compare September 8, 2023 11:34
@ee7 ee7 requested a review from booniepepper September 8, 2023 17:06
@ee7 ee7 requested a review from ErikSchierboom September 12, 2023 20:41
@ee7 ee7 merged commit 1030835 into exercism:main Sep 14, 2023
@ee7 ee7 deleted the exercises-prefer-new-for-loop branch September 14, 2023 20:28
@ee7 ee7 changed the title exercises: prefer new for loop syntax exercises: use new for loop syntax Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants