These are chat archives for rust-lang/rust

23rd
Jul 2015
Thomas Koehler
@Bastacyclop
Jul 23 2015 08:39
Is there a RefCell which can only be mutably borrowed, thus not needing to keep track of immutable borrows ? Would that be pointless ?
Erik Hedvall
@Ogeon
Jul 23 2015 08:45
There is Mutex, but it may be too much. Anyway, I think the chechs in RefCell may get optimized away if they are unnecessary.
Martin Linkhorst
@linki
Jul 23 2015 21:16
honestly, this just happened on the first run after completing rust’s awesome guessing game tutorial:
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!