Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pur-ee.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!harpo!ihnp4!inuxc!pur-ee!ecn-ee!ks From: ks@ecn-ee.UUCP Newsgroups: net.lang.c Subject: Re: return expr and Decus-C - (nf) Message-ID: <1865@pur-ee.UUCP> Date: Sun, 13-May-84 22:17:46 EDT Article-I.D.: pur-ee.1865 Posted: Sun May 13 22:17:46 1984 Date-Received: Tue, 15-May-84 05:44:19 EDT Sender: notes@pur-ee.UUCP Organization: Electrical Engineering Department , Purdue University Lines: 36 #R:decvax:-47800:ecn-ee:13100012:000:816 ecn-ee!ks May 13 20:44:00 1984 > Of course the examples aren't legal C, but that's not the > point. The question is, if you are worried that > > return (expr); > > looks like a function call, why aren't you worried that > > while (expr) stat; > > also looks like a function call? (Remember that 'stat' > can be the null statement.) Aren't you being just a bit > inconsistent? > > -- > Alan S. Driscoll > AT&T Bell Laboratories Personally, my perferred style avoids confusion. If a keyword is followed by a '(', I seperate them by a space. Admittedly, while(expr); looks like a function call, but while (expr) ; does not. Clear style is up to the programmer. Function calls should "look" like function calls, macros should look like function calls, but "return"s should not look like function calls. Kirk Smith Purdue EE