In C, Java, JS, etc., using |continue| in a |for| loop evaluates the update expression before going back to the condition. That is, in a C |for|, |continue| is a goto to the bottom of the loop and |continue| in |while| is a goto to right before the condition.
What’s the correct way to write the equivalent of C/Java/JS for loop in Rust without having to repeat the update expression before each |loop;| statement (as one would have to when reformulating the loops as a Rust |while| loop)? -- Henri Sivonen [email protected] http://hsivonen.iki.fi/ _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
