[swift-evolution] C-style For Loops

Dmitri Gribenko gribozavr at gmail.com
Sun Dec 6 17:24:01 CST 2015


On Sun, Dec 6, 2015 at 3:22 PM, Brent Royal-Gordon via swift-evolution
<swift-evolution at swift.org> wrote:
>They’ve even started changing standard library for loops to for-in.

The patch that was submitted changes the obvious cases.  It would be
good to see a patch that converts all instances, including the "hard"
ones.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-evolution mailing list