Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker!bloom-beacon!scs From: scs@athena.mit.edu (Steve Summit) Newsgroups: comp.lang.c Subject: Re: C style peeve and knowing the rules Summary: nearly useless counterindication for "return" parentheses Message-ID: <1990Mar26.023758.21002@athena.mit.edu> Date: 26 Mar 90 02:37:58 GMT Sender: scs@adam.mit.edu Reply-To: scs@adam.mit.edu (Steve Summit) Distribution: usa Organization: Massachvsetts Institvte of Technology Lines: 20 I stopped using parentheses after "return" because I happen to mistype that particular keyword a lot, and retunr x; is a compile-time error, while retunr(x); doesn't complain until link time. Admittedly a minuscule point. (Note, by the way, that K&R I says, on page 23, that The value... is returned... by the return statement... Any expression may occur within the parentheses. This initially led me to believe that the parentheses were required, as others have mentioned they once were; which may account for the misleading wording. It's been corrected in the second edition, to "Any expression may follow return.")