Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.lang.c Subject: Re: C style peeve Keywords: return Message-ID: <1207@sdrc.UUCP> Date: 18 Mar 90 22:31:35 GMT References: <2205@osc.COM> Organization: SDRC, Cincinnati Lines: 24 In article <2205@osc.COM>, jgk@osc.COM (Joe Keane) writes: > [ return(2+2) instead of return 2+2 ] > > It's a shame the compiler lets them get away with it, and i think the extra > parentheses should be strictly illegal. Unfortunately, for some reason the > ANSI committee didn't like this suggestion. Say what?!? The thing after the return keyword in an >expression<. Expressions, last I heard, are allowed to contain parentheses -- even redundant ones. Do you want to disallow all redundant parentheses? Some redundant parentheses? What? Personally, I find the idea morally repugnant. I happen to agree with you that the parentheses on return statements are ugly and people who use them should be severely teased, but trying to change the language to enforce a particular style is way out of line. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@SDRC.UU.NET 2000 Eastman Dr. BIX: ltl Milford, OH 45150-2789 AT&T: (513) 576-2070 "You know how Einstein got bad grades as a kid? Well MINE are even WORSE!" -Calvin