On Wed, Nov 20, 2013 at 6:00 PM, Gaetan <gae...@xeberon.net> wrote: > > However, i think the compiler should check that there is an exit condition > in 'loop' block. I hate reading code with "while true" without exit cond, > this is the kind of evilness that shouldnt exist in rust!
A loop without a `break` condition is perfectly sane. > And why not preventing any 'break' condition in 'while' block? Having a > "pure" while construction can make the compiler happy (better optimisation?) Loops are a higher level concept than how they're represented in LLVM bitcode anyway. Whether or not you're allowed to have break conditions inside the loop body doesn't have optimization implications. _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev