3 ms·
No, the argument against undefined behavior is that it makes errors silent. I don't care whether dereferencing a null pointer causes a segfault, an exception or
by xigoi 4y ago
No, the argument against undefined behavior is that it makes errors silent. I don't care whether dereferencing a null pointer causes a segfault, an exception or something else, but it shouldn't cause the program to run as if nothing is wrong.
- UncleMeat 4y agoIn a multithreaded program, one of the implementations I described crashes my program and one makes everything else but the stuck thread run just fine.