[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Disabling assert function
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 23 May 2010 11:24:49 +0200
On Sun, May 23, 2010 at 11:17 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
> I'm not saying that Hoare was wrong, but he seems to ignore the
> possibility that asserts are not necessarily better than the code
> around them.
Yes, it's easy to write an assertion, but not so easy to do something
sensible when it gets raised. Crashing server processes and obscure
popups do not inspire a feeling of quality software. Main moral of
story is this: you cannot rely on the out-of-the-box assert()
function for production code.