Re: assert() vs. return(error)
From: Christian Stork <cstork_at_ics.uci.edu>
Date: 2006-02-14 22:13:10 CET
Assertions are defined by their use. Normally, that means that they act
Implications of this definition:
- assertions act as checked documentation
It seems that subversion and others would like to have something like
The folklore argument in favor of assertions over documentation is, IIRC:
The problem is that assertions are often misused as conditional aborts.
(Note that the fact that assertions should not have side-effects is only
On Tue, Feb 14, 2006 at 07:57:07PM +0100, Peter N. Lundblad wrote:
So, this might be a perfect example of a relatively unefficient, but
-- Chris Stork <> Support eff.org! <> http://www.ics.uci.edu/~cstork/ OpenPGP fingerprint: B08B 602C C806 C492 D069 021E 41F3 8C8D 50F9 CA2F --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Tue Feb 14 22:13:19 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.