logoalt Hacker News

wffurr • today at 1:24 PM • 1 reply • view on HN

Properly handling overflowing integer types is a giant pain in the tail. Computer math is not like math in school and all these edge and corner cases can and will happen. At least it's not as bad as floating point math, but there's a huge number of bugs in the world due to not handling integer overflow.


Replies

fodkodrasz • today at 4:11 PM

True, but actually there are languages which help a lot in this... eg. C#, Rust, and lots of others. One more reason to replace C finally in the industry.