3 ms·
`while`? That's just sugar on top of `loop` that automatically inserts an `if` and a `break` for you. Don't be lazy, spell it out. (Although, in Rust, `if` is
by jeffparsons 4y ago
`while`? That's just sugar on top of `loop` that automatically inserts an `if` and a `break` for you. Don't be lazy, spell it out.
(Although, in Rust, `if` is also actually just sugar over `match`, so, uh...)