Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!utah-cs!utah-gr!thomas From: thomas@utah-gr.UUCP (Spencer W. Thomas) Newsgroups: net.unix Subject: Re: typedefs, etc. - (nf) Message-ID: <1039@utah-gr.UUCP> Date: Thu, 5-Jan-84 09:42:18 EST Article-I.D.: utah-gr.1039 Posted: Thu Jan 5 09:42:18 1984 Date-Received: Fri, 6-Jan-84 02:45:16 EST References: hp-pcd.3620 Lines: 15 Not to beat on an old subject too much (and, please, let's not start yet another discussion on this matter), but the parentheses on the return statement have not been required since Unix V6. So, howcome everybody keeps using them? Is this just another example of "programmer superstition?". What gives? The question "why use the style `return( a == b );'?" was raised. Well, I think that this is in analogy to a function call, where the parentheses are part of the function call syntax, not the arguments. E.g., I would write `f( a )' in preference to `f (a)'. Now, in the return statement, the parentheses are NOT a part of the syntax, so if you are going to use them, you should probably write `return (a == b);' to remain consistent. But, `return a == b;' will do just as well. =Spencer "I always remove parens from returns"