This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]