Hacker News new | ask | show | jobs
by rallyrascal 53 days ago
If it's well defined you can actually write simple code to check for overflows (like check if the sum or product is less than the inputs) and it wont get deleted by the compiler.
1 comments

Consider using the simpler code in your standard library to do this operation instead of the less scrutable version you've described here.