▲ | adwn 4 days ago | |||||||||||||||||||||||||
> I for one am glad that compilers can assume that things that can't happen according to the language do in fact not happen and don't bloat my programs with code to handle them. Yes, unthinkable happenstances like addition on fixed-width integers overflowing! According to the language, signed integers can't overflow, so code like the following:
can be optimized to the much leaner
Well, I sure am glad the compiler helpfully reduced the bloat in my program! | ||||||||||||||||||||||||||
▲ | account42 4 days ago | parent [-] | |||||||||||||||||||||||||
Garbage in, garbage out. Stop blaming the compiler for your bad code. | ||||||||||||||||||||||||||
|