Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am not sure more types are the solution. I like types, but I do not like complicated things.

The practical solution is simply -fsanitize=signed-integer-overflow. If you need complete assurance that there can not be a trap at run-time, in the rare case where I wanted this, just looking at the optimized code and making sure the traps have been optimized out was surprisingly effective.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: