This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Coding style question
- From: dewar at gnat dot com (Robert Dewar)
- To: baueran at in dot tum dot de, nathan at compsci dot bristol dot ac dot uk
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 26 Sep 2002 04:33:04 -0400 (EDT)
- Subject: Re: Coding style question
<<> 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);'
>>
My view here is that sometimes one form is clearer, sometimes the other,
and that it is a mistake to legislate style here. In particular if the
condition is complex the true/false form can be clearer. Also these
forms are not at all equivalent if the expression yields other than
0 or 1!