Latest indent request

Jef Poskanzer pokey at well.UUCP
Mon Dec 5 18:57:54 AEST 1988


In the referenced message, jfh at 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 at rtsg.ee.lbl.gov   ...well!pokey
         "Wow! Ginger! The spice that makes rotten meat taste good!"



More information about the Comp.unix.wizards mailing list