Y
Hacker News
new
|
ask
|
show
|
jobs
by
dbaupp
3371 days ago
FWIW, the former "no-cost" thing does exist in Rust, in the form of "checked_..." methods on the various integer types, e.g.
https://doc.rust-lang.org/std/primitive.i32.html#method.chec...
.
1 comments
acqq
3371 days ago
Thanks! That's the good approach.
link