[swift-evolution] C-style For Loops
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...
More information about the swift-evolution