2 ms·
> I cannot say I have ever written anything that ran into or caused undefined behavior. And I have programmed for a long time. If during that long time you wer
by wyldfire 4y ago
> I cannot say I have ever written anything that ran into or caused undefined behavior. And I have programmed for a long time.
If during that long time you were writing C or C++, it's very likely that you did but you may not have attributed the bugs you were fixing to Undefined Behavior. You may have considered them either to be your bugs or "compiler bugs that you worked around."
- tonetheman 4y agoI have written in C/C++ and gotten my fair share of null pointers or broken things but all related to logic or my own programming errors. But to me those are just that logic errors or my own crappy code errors. Back when I worked on VAX/Alpha (I am old) I absolutely had to get down and read assembly/binary to figure out the compiler was doing what I thought. And in some cases had to work around compiler bugs. But for most of the more recent things I have written I just have not run into these types of errors. I am really boring or I write code that is boring ha. It is fascinating that people study this stuff and interesting to read about, I just do not run into it.