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

Re: svn commit: r1222522 - /subversion/branches/1.7.x/STATUS

From: Branko Čibej <brane_at_xbc.nu>
Date: Sat, 24 Dec 2011 17:01:26 +0100

On 24.12.2011 16:57, Stefan Küng wrote:
> an assert implies that you _know_ something is wrong and you could
> back out without taking the process down with you

No. That is inappropriate usage of assertions. Assert means that if the
condition is not met, you cannot continue. One should not use assertions
for, e.g., validation of public API parameters.

-- Brane
Received on 2011-12-24 17:02:03 CET

This is an archived mail posted to the Subversion Dev mailing list.