News for hackers. Stuff that matters.
Re:Announcing Rust 1.13 by masklinn on Thursday November 10, 2016 @04:45PM (#12924706)
But…. these are two completely different statements, the equivalent Rust is

    if a < b { b } else { a }
why are you adding sprurious returns? And if you need to get the minimum of two values so much that actually impacts you, write a `min!` macro?
Re:Announcing Rust 1.13 by shepmaster on Thursday November 10, 2016 @05:43PM (#12925249)
No macros needed!

    use std::cmp::min;
    min(a, b);
https://doc.rust-lang.org/std/cmp/fn.min.html
Re:Announcing Rust 1.13 by masklinn on Friday November 11, 2016 @04:47AM (#12929253)
Ha. I should have known, thanks.