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

Re: assert() vs. return(error)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2006-02-14 16:25:53 CET

Julian Foad wrote:
> Branko Čibej wrote:
>> That obviously means we can't use assert to check function arguments,
>
> Not true. If one accepts that "assert" is allowed at all, it's
> perfectly valid to check arguments of private functions because we
> know all the callers and what they can do. As for public APIs, that's
> partly what the debate is about, and the answer is far from obvious.
Ah yes, I meant "public API arguments".

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 14 16:27:26 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.