Skip to content

Conversation

@yui-915
Copy link
Contributor

@yui-915 yui-915 commented Nov 29, 2025

"This is an extension, aiming to make using the language more convenient", by making it easier to iterate over range of numbers, example:

for (auto i = 0; i < 10; i += 2) printf("%lld\n", i);

instead of

auto i; i = 0; while (i < 10) {
    printf("%lld\n", i);
    i += 2;
}

This PR borrows syntax from #329 for the init-clause.

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.

1 participant