2 ms·
I think my customers would be quite annoyed if they were served junk data. The only result they care about is getting the correct output. And I'm not saying it
by ensiferum 9y ago
I think my customers would be quite annoyed if they were served junk data. The only result they care about is getting the correct output.
And I'm not saying it will necessarily lead to fewer bugs. What I'm really saying is that allows one to debug identify and fix the bugs easily, or easier than some other alternatives such as printing some error message to some log and then (possibly) continuing in UB land while silently corrupting state and then finally causing some new weird error (or crash if you're lucky).
So what I'm really advocating that dumping the core gives you two benefits:
- simplifies your code when you don't try to write logic to deal with broken logic itself.
- simplifies bug detection, analysis and fixing.
Together these two translate to more correct programs assuming that you actually go and fix the problems
Also you didn't answer my question. I'd like to see what kind of kludges you'd recommend.