|
|
|
|
|
by AlotOfReading
840 days ago
|
|
As an engineer, my job isn't to write code, it's to deliver systems that do specific things. That means that I need to understand the defined behavior of the code I put into the system. Undefined behavior anywhere means you lack defined behavior everywhere in C/C++. You can't work around this by writing more code or eliminate undefined behavior with tools like linters and tests. Your one and only option is to write perfect code that only has defined behavior. The number of people that can accomplish this in practice rounds to zero. So yeah, how can you not care about UB? It's the semantic elephant in the room. Every conversation has to include it, implicitly or not. |
|