3 ms·
> You can already use the special checked types for arithmetic on a case-by-case basis if you'd like overflow checking. Already this is a HUGE improvement over
by zvrba 12y ago
> You can already use the special checked types for arithmetic on a case-by-case basis if you'd like overflow checking.
Already this is a HUGE improvement over C. Is it allowed to silently mix checked and unchecked integers?
- kibwen 12y agoNo, 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. :)