10 ms·
That's my point: in this situation, you can't display an error and keep going. How do you know that you are not in this situation when you catch an unknown exc
by wallyhs 11y ago
That's my point: in this situation, you can't display an error and keep going. How do you know that you are not in this situation when you catch an unknown exception?
- wvenable 11y agoBut in the same situation the code might not trigger an exception and continue just the same. You've gained or lost nothing. You have to assume that code cleans itself up as the stack unwinds. That should be normal operation whether or not you are using exceptions or not. If the exception is in the middle of modifying a data structure then the cleanup should ensure that data structure is either back into a stable state or destroyed completely.
- wallyhs 11y ago> You have to assume that code cleans itself up as the stack unwinds. Exceptions or not, if you have an unknown error condition, how can you assume anything? I apologize for the delayed response.