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

Re: svn commit: r1430975 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.c

From: Branko Čibej <brane_at_wandisco.com>
Date: Wed, 09 Jan 2013 20:11:40 +0100

On 09.01.2013 20:00, Stefan Fuhrmann wrote:
> On Wed, Jan 9, 2013 at 7:42 PM, Branko Čibej <brane_at_wandisco.com
> <mailto:brane_at_wandisco.com>> wrote:
>
> On 09.01.2013 19:35, Ben Reser wrote:
> > On Wed, Jan 9, 2013 at 10:00 AM, Branko Čibej
> <brane_at_wandisco.com <mailto:brane_at_wandisco.com>> wrote:
> >> On 09.01.2013 18:54, stefan2_at_apache.org
> <mailto:stefan2_at_apache.org> wrote:
> >>> - if (header->is_delta)
> >>> + if (header->is_delta == FALSE)
> >> Can we please use logical operators to test boolean values, not
> >> arithmetic ones?
>
>
> Hm. I somehow got the impression from other people's
> code that they liked the more explicit version.

Yah, I noticed some people prefer to code COBOL in C. :)

> Personally, I prefer the shorter one.

Agreed. Of course I expect this to escalate into a flamewar, but I'll
note that while "== FALSE" is marginally acceptable, "== TRUE" is not,
because of C's rules about truth values.

-- Brane

-- 
Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Received on 2013-01-09 21:12:17 CET

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.