Really? I find that rust is worse than C++ thanks to clang
For example, is there a way in rust to get a runtime error when there's an int overflow?
For example, is there a way in rust to get a runtime error when there's an int overflow?
Or better yet, the Rust standard library exposes all the relevant LLVM intrinsics for the primitives, so you have the {Integer}::checked_, {Integer}::saturating_, {Integer}::wrapping_, {Integer}::overflowing_ (inlined) functions to do all your integer math in an error-free fashion.