Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bobbyi
· 3y ago · 0 comments
The usual justification for having a concept of "undefined behavior" at all is specifically to allow compilers to "rule out this possibility" so they can make this sort of optimization.
Comments
[–]
eru
3y ago
At least that's the modern day retro-active justification. The historical origins of undefined behaviour in eg the C standard are murkier.