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
Yeah; that post is from 2016 so the numbers may not be identical today, but checking has an inherent cost
7:06 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.