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

Re: svn commit: r1329609 - in /subversion/trunk/subversion: include/svn_error.h libsvn_fs/fs-loader.c

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 25 Apr 2012 11:04:33 +0100 (BST)

Greg Stein wrote:

> On Wed, Apr 25, 2012 at 04:24, Daniel Shahaf <danielsh_at_elego.de> wrote:
>> - I'll rename SVN_ERR_ASSERT2() to SVN_ERR_ASSERT_CHAIN()
>
> +1
>
> (I'd also be +0 for SVN_ERR_ASSERT_C())

+1 on a shorter name, since brevity is one of the important qualities of assertion statements.

SVN_ERR_ASSERT_E for 'with an Error' may be better, as 'C' is often used for 'const' as in APR_UINT64_C and may be more descriptive than 'chain'.

(While in general we should use full words in identifiers, that's more
important with the many identifiers that a reader may not have seen
recently, e.g. API functions, and less important with the few ubiquitous
 identifiers such as svn_revnum_t, SVN_ERR, SVN_ERR_W.)

- Julian
Received on 2012-04-25 12:05:08 CEST

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.