Because of the special treatment of `for` loops in Rust, I'd need a more
specific example of what you're trying to do.

On Tue, Oct 23, 2012 at 9:52 AM, Henri Sivonen <[email protected]> wrote:

> 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
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to