Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rallyrascal
· 1mo ago · 0 comments
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.
Comments
[–]
saagarjha
1mo ago
Consider using the simpler code in your standard library to do this operation instead of the less scrutable version you've described here.