These are chat archives for rust-lang/rust

7th
Sep 2017
stevensonmt
@stevensonmt
Sep 07 2017 02:25
@tanriol this is what ended up working:
prime_indices
        .into_iter()
        .enumerate()
        .skip(2)
        .filter(|&(_, p)| p)
        .map(|(i, _)| i)
        .nth((x as u64 - 1) as usize)
        .unwrap_or(1);
Why does rustc ignore 'b: 'a in for<'a, 'b: 'a>?
Floppy
@AlmightyFloppyFish
Sep 07 2017 20:32
Why are you using Rust instead of something like C# or Go? Not saying Rust is a bad language. Just asking what's so special about it and puts it above others
David Harvey-Macaulay
@alteous
Sep 07 2017 20:33
@AlmightyFloppyFish Safe and precise control of data structures. Protection from data races is an extra bonus.
Great handle, by the way.
Floppy
@AlmightyFloppyFish
Sep 07 2017 20:36
Interesting, Have been thinking of trying it out sense I like mozilla as a company
David Harvey-Macaulay
@alteous
Sep 07 2017 20:37
Mozilla is a great company. :smile:
Zakarum
@omni-viral
Sep 07 2017 20:53
@AlmightyFloppyFish I use Rust instead of C. It has the same level of control (thus performance) but safer in many ways.