Re:The Performance Cost of Integer Overflow Checking
by kibwen on Thursday December 18, 2014 @09:55AM
(#8767431)
No, Rust does exactly zero implicit coversions between numeric types. For that matter, it doesn't allow you to implicitly use an i8 where, say, an i32 is expected (forcing you to explicitly cast instead), even though the former represents a range that is a strict subset of the latter. Whether or not this is a feature or a flaw depends on the observer. :)
Already this is a HUGE improvement over C. Is it allowed to silently mix checked and unchecked integers?