Additive idea, but +1 for looping on ranges without the need on an index.


-- 
Adrian Zubarev
Sent with Airmail

Am 1. Juli 2016 um 09:39:23, Diego Barros via swift-evolution 
(swift-evolution@swift.org) schrieb:

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@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to