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

assertions (a question of coding style)

From: Branko Čibej <branko.cibej_at_hermes.si>
Date: 2000-09-15 14:15:44 CEST

Hi everyone,

I'd like to ask for opinions about using assert() in Subversion
code to test for invariants. Right now assertions are used heavily
only in the APR testing code.

Personally, I like to use assert() for the "this can't happen" kind
of coding errors that can't be recovered from, then don't ever
define NEDBUG. Of course, this might not be very appropriate for
server code ...

Thoughts?

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70
Received on Sat Oct 21 14:36:08 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.