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

Diego Barros diego at heyboyo.com
Fri Jul 1 02:38:45 CDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160701/9b6e6802/attachment.html>


More information about the swift-evolution mailing list