[swift-evolution] C-style For Loops

Chris Lattner clattner at apple.com
Thu Dec 3 17:34:37 CST 2015

> On Dec 3, 2015, at 3:32 PM, Erica Sadun <erica at ericasadun.com> wrote:
> Does Swift still needs C-style for loops with conditions and incrementers? 
> <Screen Shot 2015-12-03 at 4.30.15 PM.png>
> More Swift-like construction is already available with for-in-statements and stride. 
> This would naturally starve the most common point for -- and ++ operators as well.

I am certainly open to considering dropping the C-style for loop.  IMO, it is a rarely used feature of Swift that doesn’t carry its weight.  Many of the reasons to remove them align with the rationale for removing -- and ++.  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151203/dd0c2f7e/attachment.html>

More information about the swift-evolution mailing list