Article

From:
To:
J. M. De Moor
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

In article <3b78853d$1_1@dnews>
	"J. M. De Moor" <✉nospamobjectpac.com> wrote:

> Brian
> 
> > About 95% of try..except blocks are a bad idea.
> >
> Don't know how scientific your 95% is but I'll go you one better.

Please list some valid uses of exception-swallowing try..except blocks,
and I'll show you that the majority should have checked for error before
doing whatever raised the exception.

> I think that the vast majority of raise statements are a bad idea.

Don't worry, it'll pass as you see more code.

-- Barry
--   If you're not part of the solution, you're part of the precipitate. Team JEDI: http://www.delphi-jedi.org NNQ - Quoting Style in Newsgroup Postings   http://web.infoave.net/~dcalhoun/nnq/nquote.html
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 22 Nov 2024 17:25:18 UTC
Copyright © 2009-2024
HREF Tools Corp.