[swift-evolution] For-loop revisited

Ted F.A. van Gaalen tedvgiosdev at gmail.com
Fri Feb 26 11:11:50 CST 2016


I also do like the for..in.. naturally: when collections are involved.
like:  
    for croc in crocodiles  
    for candidate in presidentialCandidates.sort( { $0.IQ > $1.IQ} )  //...
etc.


I also see no reason to remove ++ and —  
but i can live with it. 



Ted

> On 26.02.2016, at 17:21, Vanderlei Martinelli <vmartinelli at alecrim.com> wrote:
> 
> Well... I'm against the removal of C style for loop, but it is gone. (I do not think the `for ... in ...`  is a replacement.) And I'm against the removal of `++` and `--` operator as well. For years to come whenever anyone asks me about it I'm going to say that I was against the removal. ;-)
> 



More information about the swift-evolution mailing list