Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!phri!delftcc!sam From: sam@delftcc.UUCP (Sam Kendall) Newsgroups: net.lang Subject: Re: Indentation instead of braces Message-ID: <147@delftcc.UUCP> Date: Fri, 30-May-86 09:01:05 EDT Article-I.D.: delftcc.147 Posted: Fri May 30 09:01:05 1986 Date-Received: Sun, 1-Jun-86 08:36:54 EDT References: <2783@utcsri.UUCP> <845@bentley.UUCP> Organization: Delft Consulting Corp., New York Lines: 21 Summary: You don't need backslashes for long lines. kwh@bentley.UUCP writes: > utcsri!greg writes: > >What about the following sort of thing, though ? ( this is > >how I would write it in normal C ): > > /* [example abridged by sam@delftcc.UUCP] */ > > if( total_confusion_estimated > MAX_CONFUSION ) > > printf( > >"Well I think you ought to know that I am getting really confused by %s\n", > > reason_for_confusion[WOMBAT] > > ); > > No problem. Remove the braces, leave the indentation alone, and tack a > backslash onto the first three lines of the printf statement. You don't need the backslashes. Indentation should be significant only before a statement, or something like that. So indentation in the middle of an expression, such as in the printf above, is ignored. ---- Sam Kendall { ihnp4 | seismo!cmcl2 }!delftcc!sam Delft Consulting Corp. ARPA: delftcc!sam@NYU.ARPA