[swift-evolution] Proposal: Remove the underscore and `in` for `for` loop

Sean Heber sean at fifthace.com
Fri Jul 1 09:18:49 CDT 2016


Minor, but I think I'd be onboard as well. Once proposed (and assuming it was approved), this would likely be deferred until post Swift 3 since it’s additive.

l8r
Sean


> On Jul 1, 2016, at 2:38 AM, Diego Barros via swift-evolution <swift-evolution at swift.org> 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
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list