3 ms·
The allowance wasn't "tradeoff performance time with developer time". The point of undefined behavior is "if we specify this, we cause problems for some of the
by PaulDavisThe1st 3y ago
The allowance wasn't "tradeoff performance time with developer time".
The point of undefined behavior is "if we specify this, we cause problems for some of the compile targets for this language".
- patmorgan23 3y agoYes, but then complier vendors started abusing UB to increase performance and while silently decreasing safety/correctness. If the compiler creates a security bug by optimizing away a bounds check the programmer explicitly put there, that's a problem. https://thephd.dev/c-undefined-behavior-and-the-sledgehammer-guideline https://thephd.dev/c-undefined-behavior-and-the-sledgehammer...