Skip to content

[stdlib] simplify loop logic #4584

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

Merged
merged 1 commit into from
Sep 1, 2016
Merged

[stdlib] simplify loop logic #4584

merged 1 commit into from
Sep 1, 2016

Conversation

Nirma
Copy link
Contributor

@Nirma Nirma commented Sep 1, 2016

The repeat { ... } while true in the body of next() can be simplified to just a while true { ... }.
I think this is better because you can see the loop condition up front, and while true behaves the same way with or without a leading repeat so might as well simplify this.

@gribozavr
Copy link
Contributor

@swift-ci Please smoke test

@gribozavr gribozavr merged commit 190df8e into swiftlang:master Sep 1, 2016
kateinoigakukun added a commit that referenced this pull request Aug 31, 2022
[pull] swiftwasm from main
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