-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-227] Remove C-style for loops #42849
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
Comments
Comment by G Alexander (JIRA) completely disagree, keep C loops |
Comment by Austin C (JIRA) I've read a lot of the people's reasonings for removing C-style loops, but I entirely disagree. It already works, it is simple, and there really is no need to remove it. It already exists. It is not some complicated mess. If it was broken in some way, sure. There are a lot of programmers in different languages who use this syntax and it makes migration initially easier. It doesn't enter any bugs into the system. It is a fundamental part of the language already that is not broken in any way. No need to break code just because of bunch of expert programmers got together and wanted everyone else to change. I see a lot of challenges on here too "see if anyone can be smart enough to do this in the more Swifty way." |
Comment by G Alexander (JIRA) what he said ^^ |
Comment by Joe (JIRA) I agree with austintatious (JIRA User) as well but the fact is the decision has been made, has the backing of "the big names in Swift", and across the board it's being removed in the various repositories. It is amusing to watch the mental contortions as people try to find ways of expressing the basic iteration logic the C-style for loop provides using some other less clear and syntactically painful form. In the end though the language will eject the syntax in version 3.0, so we might as well get with the program and hope that folks had their jollies and don't try to eliminate other useful constructs in the future. |
Discussions on the evolution of Swift should go on the [swift-evolution mailing list](https://lists.swift.org/mailman/listinfo/swift-evolution). The bug tracker is for tracking bugs, implementation tasks, and so on. Thanks! |
Comment by G Alexander (JIRA) just tell the the last version with C loop and I'll make my own fork. what discussion? it's just a mailing list? |
See the [swift-evolution repository](https://github.com/apple/swift-evolution) for more information on the Swift evolution process. |
Comment by Michael Jordan (JIRA) Hello, I'm new to this board, but certainly not new with my coding skills. I note that this issue is sitting open. Would it be proper to volunteer for something like this, and if so, what would be the procedure? |
Comment by Joe (JIRA) Howdy lxman (JIRA User). I don't believe there is any work to be done here, C-style for loops have already been removed from Swift. I think this ticket should simply be marked Resolved/Closed. |
Comment by Michael Jordan (JIRA) Okay, thanks, I'll keep my eyes open then. |
This was implemented in Swift 3 quite a while ago. |
Additional Detail from JIRA
md5: 92c8cd90815378bcd771384d00bd1b6d
Issue Description:
Per
https://github.com/apple/swift-evolution/blob/master/proposals/0007-remove-c-style-for-loops.md
we should remove C-style for loops from Swift 3.0.
The text was updated successfully, but these errors were encountered: