Benny Lofgren wrote: > On 2015-10-05 22:21, Rob Pierce wrote: > > On Mon, Oct 05, 2015 at 05:38:34PM +0059, Jason McIntyre wrote: > >> On Mon, Oct 05, 2015 at 11:50:49AM -0400, Rob Pierce wrote: > > Is it KNF compliant to have an exit() or return() at the same indentation as > > the closing function brace? For example: > > > > exit(1); > > } > > > > Or: > > > > return(1); > > } > > This reminds me of something I've always wondered, but never gotten > around to ask about... > > Why is the return value in return statements almost always enclosed in > parantheses in the codebase? > > It's not explained in style(9) as far as I know, so I guess it just > crept in over time...
rumor has it that you can turn return() into a debug statement with a macro if it uses parenthesis, but since i've never done that, i don't find it a good argument. i think code should try to be consistent in a file, but new code i write doesn't follow this rule.