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 @rustlang
This is simmilar to not returning Result for accessing array members by index. It‘s just too much overhead for the fact that errors happens rarely. Although, the fact that overflow is a non panicking operation is a bit scary ;)
1 reply 0 retweets 1 like -
Replying to @NoelWidmer @KingstonTime
To be clear, it’s panic in debug, and currently no panic in release. We do reserve the right to panic in release if it gets cheap enough in the future.
1 reply 0 retweets 3 likes -
Replying to @rustlang @KingstonTime
How could it be faster in the future?
1 reply 0 retweets 0 likes
Replying to @NoelWidmer @KingstonTime
Hardware support, in my understanding.
8:34 AM - 11 Jun 2018
0 replies
0 retweets
0 likes
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.