This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Coding style question
- From: Nathan Sidwell <nathan at acm dot org>
- To: Andreas Bauer <baueran at in dot tum dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 26 Sep 2002 09:13:32 +0100
- Subject: Re: Coding style question
- References: <20020926071805.GP6474@kennel>
- Reply-to: nathan at compsci dot bristol dot ac dot uk
Andreas Bauer wrote:
> It was being pointed out to me that you might prefer in patches the
> return (<condition>);
> }
yes, btw it would be 'return cond;' not 'return (cond);'
> over (B)
> if (<condition>)
> return true;
> else
> return false;
seeing this, I would expect the returns to be
return some_other_cond
else
return yet_another_cond
i.e, simply having true and false would surprise me.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
The voices in my head told me to say this
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk