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

Re: to use braces or not? (was: Re: [PATCH]: A newer, better, svndiff)

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-02-20 02:12:46 CET

Greg Stein <gstein@lyra.org> writes:
> > > + if (cache)
> > > + {
> > > + svn_pool_destroy (cache->pool);
> > > + }
> >
> > We don't generally put braces around a single-line body of a control
> > statement.
>
> I'd say that it is personal preference at this point, with a mild nod
> towards the style (if obvious) that prevails in the given file.

+1 on what Greg said, for what its worth. The clarity of braces
versus no-braces depends heavily on the surrounding context; let the
author be the judge.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:09 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.