These are chat archives for rust-lang/rust
RefCellwhich can only be mutably borrowed, thus not needing to keep track of immutable borrows ? Would that be pointless ?
Mutex, but it may be too much. Anyway, I think the chechs in
RefCellmay get optimized away if they are unnecessary.
code/rust/guessing_game [master] $ cargo run Running `target/debug/guessing_game` Guess the number! Please input your guess. 50 You guessed: 50 Too big! Please input your guess. 25 You guessed: 25 Too small! Please input your guess. 42 You guessed: 42 You win!