4 ms·
> Isn't UB a subset of bugs No, not at all. UB can still produce correct and expected results for the entire input domain.
by NoTeslaThrow 1y ago
> Isn't UB a subset of bugs
No, not at all. UB can still produce correct and expected results for the entire input domain.
- fc417fc802 1y agoIf I have a bug that only triggers between 9 and 10 am EST on Mondays that is still a bug, no? Now extend that to "rand(1.0) < 0.01". Now extend that to a check using __TIME__ that goes off at compile time instead of runtime (some binaries are buggy, some aren't). Now extend that to UB.
- deleted 1y ago[deleted]
- pharrington 1y ago"can" is extremely different than "will"!