On 11/19/2013 12:09 PM, Daniel Micay wrote:
The `loop` keyword still exists for the moment, but only for infinite
loops. I'd prefer removing it and just using `while true { ... }`.

My view on conditionned loop is something like:

loop [while cond] {
    ...
    [continue if cond]
    ...
    [break if cond]
    ...
} [until cond]

An infinite loop is just when there is neither start, nore end condition.

Or replace "loop" with "do" (only for brevity), "continue" with "next" or "up", "break" with "exit" or "out" (the latter 2 for clarity).

Denis
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to