|
|
|
|
|
by junke
3217 days ago
|
|
Not all programming errors lead to incorrect programs (correctness being defined by the language). You shouldn't call sqrt(-1) in C, and if you do, you abort. But maybe you are not supposed to call sqrt(20) either, because 20 is a sign your programmer did not understand the application. In that case, the programming error is still a correct program. In languages like Python, or Lisp, there are a whole set of programming errors like dividing by zero, calling length on something that is not a sequence, etc. that are designed to not crash the system (nor make it inconsistent), in part because those errors can happen while developing the code and are just of way providing an interactive feedback. Now, if you ship a product and there is a programming error that manifests itself while in production, you better not try anything stupid, I agree. |
|