I'm kinda intrigued why the std library in @rustlang doesn't return results for adding numbers together rather than panicking at overflow.
-
-
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/ …
-
Yeah; that post is from 2016 so the numbers may not be identical today, but checking has an inherent cost
End of conversation
New conversation -
-
-
Beyond that, different applications may want to do different things with regard to overflow: wrap, saturate, fail, etc
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.