On 2/14/06, Julian Foad <julianfoad@btopenworld.com> wrote:
> Garrett Rooney wrote:
> > On 2/14/06, Julian Foad <julianfoad@btopenworld.com> 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.
> >
> > That's not exactly true either. We've had (for as long as I can
> > remember) a policy that we don't explicitly check for valid arguments
>
> That's at least the second time someone's said, "We've had a policy". I would
> say instead, "We've had a habit." I haven't heard a good argument for this habit.
It's been discussed numerous times, see the mailing list archives.
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 14 19:54:27 2006