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
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?
[ Parent
| on HN ]
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