-1. I like the underscore. If it turns out you do need the loop variable later, 
it's easy to see where to add it.
 
 
 Karl
 
 
 
 

 
 
>  
> On Jul 1, 2016 at 9:38 AM,  <Diego Barros via swift-evolution 
> (mailto:[email protected])>  wrote:
>  
>  
>  
>  
> When you want a simple `for` loop, for example:
>  
>
>  
>  
>
> for   _   in   1...10   {
>
>  
>  
> >  
> >  
> >
> > // do something 10 times
> >
> >  
> >  
>  
>  
>
> }
>
>  
>
>
>
>
>  
>
> Clean-up and simplify the syntax by removing the   superfluous   underscore 
> and `in`:
>
>  
>
>
>
>
>  
>
> for   1...10   {
>
>  
>  
> >  
> >  
> >
> > // do something 10 times
> >
> >  
> >  
>  
>  
>
>
>
>  
>
> }
>
>  
>  
>  
>  
>  
>  
>
>  
> -- diego
>  
>  
>  
>  
>  
>  
>  _______________________________________________ swift-evolution mailing list 
>  [email protected] (mailto:[email protected])   
> https://lists.swift.org/mailman/listinfo/swift-evolution
>  
 
 
 
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to