Re: style(9) question

From: Dmitry Pryanishnikov <dmitry_at_atlantis.dp.ua>
Date: Thu, 2 Mar 2006 20:58:42 +0200 (EET)
Hello!

On Thu, 2 Mar 2006, Colin Percival wrote:
>> I can't really think of a good reason
>> for return (foo) over return foo
>
> I'm not sure if this qualifies as a *good* reason, but
> writing "return (foo)" is more consistent with other
> keyword usage: "if (foo)", "for (foo)", "while (foo)",
> "switch (foo)".

  OTOH, our style doesn't recommend parentheses after "case" and type names; 
indeed,

int (i);
extern char (j);

case ('1'):

looks ugly despite being perfectly legal (at least from GCC's POV).


Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry_at_atlantis.dp.ua
nic-hdl: LYNX-RIPE
Received on Thu Mar 02 2006 - 17:58:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:53 UTC