Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druxm.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!hogpc!houxe!drutx!druxm!toml From: toml@druxm.UUCP Newsgroups: net.lang.c Subject: Re: return expr and Decus-C Message-ID: <853@druxm.UUCP> Date: Thu, 10-May-84 12:59:48 EDT Article-I.D.: druxm.853 Posted: Thu May 10 12:59:48 1984 Date-Received: Sat, 12-May-84 08:22:48 EDT References: <478@decvax.UUCP>, <1514@brl-vgr.ARPA> Organization: AT&T Information Systems Laboratories, Denver Lines: 19 > From: gwyn@brl-vgr.UUCP > > return expr; > is preferable to > return(expr); > since the latter looks like a function call (which it is not). By this reasoning, we should use "while expr" instead of "while (expr)", and "if expr" instead of "if (expr)". And don't forget "switch expr" to replace "switch (expr)". My own opinion is that "return (expr)" is clearer, since it clearly distinguishes between the keyword and the parameter. I think of this as a general "thing-to-do (thing-to-do-it-with)" syntax that is consistent among C commands, functions, and macro pseudo-functions. Tom Laidig AT&T Information Systems Laboratories, Denver ...!ihnp4!druxm!toml