c++ - For access violation exceptions, should we blame the author? -
i programming managed code c#. in managed world, causing null reference exception big no no if catch them, , it's author's fault except thread safety misuses. can conclude same native code well? mean if library causes access violation first chance exception , if exception handled library, can it's bug in library?
in native c++ code, "access violation errors" or "null reference errors" or not exceptions @ all. they're undefined behavior. blame squarely on head of responsible coder.
this might coder passing nonsense library. that's no different c# - mantra "garbage in, garbage out" quite universal.
Comments
Post a Comment