[swift-evolution] repeat loop enhancement

Michel Fortin michel.fortin at michelf.ca
Wed Dec 9 16:09:39 CST 2015

Le 9 déc. 2015 à 16:12, Tyler Cloutier via swift-evolution <swift-evolution at swift.org> a écrit :

> Oooh and one more, the Infinite Loop:
> repeat {
> }

I actually tried to get an infinite loop this way once, after I saw that "repeat" was a keyword. It took me 10 minutes before I noticed the while after it was mandatory. Then I settled for "while true".

In case someone wants to fix the diagnostic message:

Michel Fortin
michel.fortin at michelf.ca

More information about the swift-evolution mailing list