3 ms·
Yes, I can have functions/methods that do math differently from the default. I could just as easily say that's C's way and mix and match those: int64_t x
by xscott 3y ago
Yes, I can have functions/methods that do math differently from the default. I could just as easily say that's C's way and mix and match those:
int64_t x = add_i64_with_abort_on_debug_and_wrap_on_release(y, z);
uint8_t t = add_u8_with_saturation(u, v);
I'd prefer the default for the math operators be what all the CPUs currently do, and neither C or Rust promises that.