|
|
|
|
|
by fsckboy
408 days ago
|
|
>The compiler leverages undefined behavior by allowing optimizations to not have to care about code that exhibits such undefined behavior. that's pure maliciousness. if the programmer has written code that exhibits undefined behavior, it should be flagged as an error so it can be changed to code that does not exhibit undefined behavior. programs need to have one unambiguous meaning, and it should be the meaning intended by the programmer. if meanings can be detected as ambiguous or as not what the programmer intended, that should be flagged, not magically swept under the carpet because it's "faster". |
|