[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

abort or assert?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-11-09 16:40:01 CET

In most of the places where we currently say:

   if (blah) abort();

I feel we should be saying:

   assert(!blah);

There may be some reasons to abort() in a few cases, such as to avoid possible
data loss. If I prepare a patch to convert to assert() where it seems
appropriate, perhaps someone could review it with this in mind.

Does this sound reasonable?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 9 16:40:48 2004

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.