Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2001 23:04:47 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        Freddie Cash <fcash@bigfoot.com>
Cc:        freebsd-chat@FreeBSD.ORG
Subject:   Re: silly C style question
Message-ID:  <20010122230447.S10761@rfx-216-196-73-168.users.reflex>
In-Reply-To: <3A6C6E80.4535.632D3C1@localhost>; from fcash@bigfoot.com on Mon, Jan 22, 2001 at 05:31:44PM -0800
References:  <20010122170600.D4456@dogma.freebsd-uk.eu.org> <jcm@FreeBSD-uk.eu.org> <200101221743.f0MHh7I61638@gratis.grondar.za> <3A6C6E80.4535.632D3C1@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 22, 2001 at 05:31:44PM -0800, Freddie Cash wrote:
> Bah!  If you are worried about screen space and legibility, there's 
> always the following:
> 
> if (0==i)
>   { foo(i);
>     bar(i);
>   }

Everyone knows it should be,

  if(!i){foo(i);bar(i);}

Or,

  if ( 
	  i 
	  == 
	  0 
  )
  {
	  foo(
		  i
	  )
	  ;

	  bar(
		  i
	  )
	  ;
  }

Or if you like emacs tabbing,

  if ( 
      i 
      == 
      0 
      )
    {
      foo(
	  i
	  )
	;
      
      bar(
	  i
	  )
	;
    }
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010122230447.S10761>