Subject: Parentheses and KNF
To: None <current-users@netbsd.org>
From: Brian C. Grayson <bgrayson@marvin.ece.utexas.edu>
List: current-users
Date: 08/19/1998 19:37:07
  While we're at it, the KNF doc (/usr/share/misc/style) gives
the following as an example of an expression that shouldn't have
any more parentheses than those strictly needed:
        /*
         * Unary operators don't require spaces, binary operators do. Don't
         * use parenthesis unless they're required for precedence, or the
         * statement is really confusing without them.
         */
        a = b->c[0] + ~d == (e || f) || g && h ? i : j >> 1;

  Can _anyone_ parse that in 5 seconds or less, or should
the comment and the example be changed/updated?  :)

  Brian
-- 
	"Love is a kind of seventh day -- it gives us a rest from thinking."
		--  from "Camelot"