Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 1997 18:18:45 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Charles Henrich <henrich@crh.cl.msu.edu>
Cc:        perhaps@yes.no, freebsd-current@FreeBSD.ORG
Subject:   Re: VM system info 
Message-ID:  <772.881687925@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 09 Dec 1997 11:43:31 EST." <199712091643.LAA04851@crh.cl.msu.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
>>(5) Code prerequisites is documented through assert() or similar
>>    functionality.
>
>Egads!  I wish assert() was thrown down to the pits of hell.  Its a
>programmers cop out.  In almost no circumstance does one ever need to assert
>.
>If you find an error condition, COPE as best you can!  Especially in the
>kernel.

Well, suffice to say that I disagree more than words can express.

In particular in a kernel should assert be used to guard against
"bad news", but lets just remember that an assert can be as stealthy
as a syslog entry or as intrusive as a panic.  It all depends exactly
how bad.

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?772.881687925>