News for hackers. Stuff that matters.
Re:Myths about Integer Overflow in Rust by Gibbon1 on Friday April 29, 2016 @05:08PM (#11598779)
I get hammered every time I mention this, but what happens when a primate type overflows should be handled by the type system.

IE, by default overflow checked and is an error. But you can declare a type with something like twos_complement. And the compiler will implement the expected behavior. Or if you want no you can disable overflow checks.

This stuff really should not be global behavior. Because 90% of the time the cost of overflow checks is nil so you should do them.

There are no comments on this comment yet.