Kristofer Skaug
Re: Exceptions vs Error codes

Re: Exceptions vs Error codes

In article <3b7d95a9_2@dnews>
	"Kristofer Skaug" <‚úČ> wrote:

> > A programmer must explicitly dismiss an exception, while an error code
> > can be ignored by default.
> Exceptions can be ignored too. 

Only through "try {stuff} except end; "; otherwise, they will be
*visible*, and execution will be *aborted*. With ignored error codes,
the only warning you get is that stuff doesn't happen, or data loss, or
application crashes, etc.

Continuing in the face of errors would be a lot worse. Which is the default situation for error return codes; you must explicitly, actively, check for them.
-- Barry
FYI: Phrase searches are enclosed in either single or double quotes
Originally created by
Tamarack Associates
Tue, 07 Feb 2023 05:42:14 UTC
Copyright © 2009-2023
HREF Tools Corp.