Path: utzoo!utgpu!watmath!clyde!att!rutgers!apple!well!pokey
From: pokey@well.UUCP (Jef Poskanzer)
Newsgroups: comp.unix.wizards
Subject: Re: Latest indent request
Message-ID: <7837@well.UUCP>
Date: 5 Dec 88 08:57:54 GMT
References: <9125@rpp386.Dallas.TX.US>
Reply-To: Jef Poskanzer 
Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal
Lines: 34

In the referenced message, jfh@rpp386.Dallas.TX.US (The Beach Bum) wrote:
>I have one MAJOR gripe with the above { } scheme.  Consider:
>
>main ()
>{
>	if (expr)
>		{
>		while (cond)
>			{
>			};
>		}
>/*	possible missing } on this line??? */
>}
>
>This is UGLY UGLY UGLY.  It is also counter-intuitive.

No, silly.  Here's how you do it:

main ()
	{
	if (expr)
		{
		while (cond)
			{
			};
		}
	}

This style is common among ex Pascal programmers.
---
Jef

             Jef Poskanzer   jef@rtsg.ee.lbl.gov   ...well!pokey
         "Wow! Ginger! The spice that makes rotten meat taste good!"