I'm kinda intrigued why the std library in @rustlang doesn't return results for adding numbers together rather than panicking at overflow.
-
-
Replying to @KingstonTime
Too hard of an ergonomic hit to do by default.
2 replies 0 retweets 3 likes -
Replying to @rustlang
I also just read checked_add is much slower too.https://huonw.github.io/blog/2016/04/myths-and-legends-about-integer-overflow-in-rust/ …
2 replies 0 retweets 1 like
Replying to @KingstonTime
The key is, overflow in and of itself can’t cause memory unsafety. If it did, we’d take a stronger stance. Time will tell if this was the right choice!
7:07 AM - 11 Jun 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.