Re: Why leave the error handling to the caller?
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Thu, 21 Jun 2007 10:25:55 +0000
CBFalconer said:
Richard Heathfield wrote:
... snip ...
Well, since I wasn't in on their discussion I obviously can't argue
that they did, or that they did not, carefully consider any of the
above. What I can argue is that a library function has no business
taking the decision of whether to continue or to terminate out of
the hands of the application programmer. Since xmalloc does take
that decision out of the hands of the programmer, I wouldn't want
it in any program I ever wrote. Student programming, through and
through.
Nonsense. It is entirely up to the programmer whether to call
xmalloc or malloc.
Yes, of course it is, and I didn't say otherwise. But not calling
xmalloc may, in this case, mean not calling a library function whose
functionality you really really need and whose source code you haven't
got and you only know it calls xmalloc because it shows up on the
backtrace when you try to work out why the thing keeps dumping core (if
indeed it does dump core - which it might not if the stupid thing is
calling exit rather than abort).
Frankly, I'm sick to the back teeth of Linux applications dropping dead
in the middle of a session. They are far more prone to it than Windows
applications, and I'm convinced it's because of this "do what I want or
I'll die in your face" attitude that prevails in the Linux community.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.
- References:
- Why leave the error handling to the caller?
- From: Chad
- Re: Why leave the error handling to the caller?
- From: Malcolm McLean
- Re: Why leave the error handling to the caller?
- From: CBFalconer
- Re: Why leave the error handling to the caller?
- From: Richard Heathfield
- Re: Why leave the error handling to the caller?
- From: Dave Vandervies
- Re: Why leave the error handling to the caller?
- From: Richard Heathfield
- Re: Why leave the error handling to the caller?
- From: CBFalconer
- Why leave the error handling to the caller?
- Prev by Date: Re: Why leave the error handling to the caller?
- Next by Date: Re: reverse the bits in an interger?
- Previous by thread: Re: Why leave the error handling to the caller?
- Next by thread: Re: Why leave the error handling to the caller?
- Index(es):
Relevant Pages
|