This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Coding convention: use of `!x' vs. `! x'
- To: gcc at gcc dot gnu dot org
- Subject: Re: Coding convention: use of `!x' vs. `! x'
- From: Tim Hollebeek <tim at hollebeek dot com>
- Date: Fri, 22 Sep 2000 12:36:42 -0400 (EDT)
David Edelsohn writes ...
>
> Richard> What about the other unary operators? Should they have a blank, like the
> Richard> binary operators do, or no blank, like "!" now will?
One practical advantage of using "!x" (and similar for all other unary
operators) is that it is visually consistent with the C precedence
rules.
5 - ~ x + 1 // less clear
5 - ~x + 1 // better
// more realistic example
y + * x + 1
y + *x + 1
-Tim