3 ms·
i guess the argument is that you'll never read random garbage instead of a well-formed object; and given that random garbage could result in pretty much arbitra
by uryga 7y ago
i guess the argument is that you'll never read random garbage instead of a well-formed object; and given that random garbage could result in pretty much arbitrary "undefined behavior", it should at least guarantee that your program will behave roughly as intended, even if giving incorrect results
(i'm not convinced that's a useful thing myself)
- littlestymaar 7y ago> and given that random garbage could result in pretty much arbitrary "undefined behavior" Nitpick: UB doesn't come from reading random garbage, it's quite the opposite: UB could result in reading random garbage, but it could also result in many worse things.
- uryga 7y agoi put it in quotes because i meant "arbitrarily weird side-effects", but you're right that i should have used a different term