[swift-evolution] Review for: Remove C-style for-loops with conditions and incrementers

Michel Fortin michel.fortin at michelf.ca
Sat Dec 12 11:00:32 CST 2015


Le 12 déc. 2015 à 9:41, Rainer Brockerhoff via swift-evolution <swift-evolution at swift.org> a écrit :

> I also propose that the `repeat` clause be extended to the remaining
> `for-in` loop:
> 
> for item in sequence {
> 	print("\(item)")
> } repeat {
> 	print(", ")
> }
> 
> which will be handy in many situations.

Are you sure this does what you expect?


-- 
Michel Fortin
michel.fortin at michelf.ca
https://michelf.ca



More information about the swift-evolution mailing list