Skip to content

A small step towards removing C-style loops #270

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
Dec 6, 2015

Conversation

hamin
Copy link
Contributor

@hamin hamin commented Dec 6, 2015

This is a small step towards removing C-style loops in favor of Swift for/in loops as presented in this accepted proposal:https://github.com/apple/swift-evolution/pull/23/commits . Nothing big here, just getting my feet wet and trying help improve code quality :)

@gribozavr gribozavr self-assigned this Dec 6, 2015
@gribozavr
Copy link
Contributor

I'll run tests and merge.

@@ -29,8 +29,8 @@ struct _Prespecialize {
a[0] = a[j]
}

for var i1 = 0; i1 < a.count; ++i1 {
for var i2 = 0; i2 < a.count; ++i2 {
for i1 in 0..<a.count {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this use a.indices?

gribozavr added a commit that referenced this pull request Dec 6, 2015
A small step towards removing C-style loops
@gribozavr gribozavr merged commit 4b8fff4 into swiftlang:master Dec 6, 2015
@gribozavr
Copy link
Contributor

@dabrahams Just noticed your comment. I'll take care of that.

EDIT: Implemented in 403b46c.

@hamin
Copy link
Contributor Author

hamin commented Dec 6, 2015

@gribozavr I don't mean to sound cheesy, but this is the first commit I've ever made to a programming language ever. Thank you 😄

@gribozavr
Copy link
Contributor

@hamin You're welcome! 💯

slavapestov pushed a commit to slavapestov/swift that referenced this pull request Nov 27, 2018
…options

link swift libraries when building test executables
kateinoigakukun pushed a commit to kateinoigakukun/swift that referenced this pull request Mar 5, 2020
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
Update Lark to Swift 4.2, resolves XFAIL
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.

3 participants