Unnecessary parenthesis

Jim Gardner jagardner at watmath.waterloo.edu
Fri Jul 8 15:04:33 AEST 1988


In article <2550075 at hpisod2.HP.COM> decot at hpisod2.HP.COM (Dave Decot) writes:
>> >	return(0);	/* one wonders why the () are there */
>> 
>> 1) Because it looks consistent.
>
>With what?  Why do you want to make it easier to confuse function calls
>with statements that don't come back?

consider exit() and abort()

>I use "return e;" because it's less cluttered and more
>distinct.

I use return( e ) because the parens highlight the return value.
I have no problem reading either, and I suspect most people have no
problem with either.



More information about the Comp.lang.c mailing list