[rust-dev] Warn about implicit integer conversion

Niko Matsakis niko at alum.mit.edu
Thu Dec 20 12:39:33 PST 2012



Graydon Hoare wrote:
> (We'll also probably need or want some more general overflow-checking
> attributes anyways. I've had at least 3 people react in horror when I
> told them that while divide-by-zero is trapped, integer-overflow _isn't_
> trapped by default in my nice "safe language" :)

+1

I tend to think that int/uint should trap on overflow, but not 
i8/i16/i32/i64 etc


Niko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20121220/0d1fdaf5/attachment.html>


More information about the Rust-dev mailing list