Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!purdue!bu-cs!bloom-beacon!mit-eddie!uw-beaver!ubc-cs!alberta!calgary!maloff From: maloff@calgary.UUCP (Sheldon Maloff) Newsgroups: comp.sys.amiga Subject: Re: Draco keywords Message-ID: <1704@vaxb.calgary.UUCP> Date: 28 Jun 88 05:39:00 GMT References: <1809@van-bc.UUCP> <337@uwslh.UUCP> <6830@cup.portal.com> Organization: U. of Calgary, Calgary, Ab. Lines: 47 In article <6830@cup.portal.com>, thad@cup.portal.com writes: > STYLE is very important. After just completing a 300,000+ line C port, > in retrospect I'm *GLAD* I used (for example): > > if ( condition) > { > for ( loop head ) > { > (loop body); > } > } > > MUCH much easier to see closure when the opening and closing braces are > indented the same. This isn't the newsgroup for it, and this thread has deviated substantially since I first posted it. *STYLE* is important. But nobody is going to tell me that the above is easy to read ... its basically a dirivative of the way Pascal code is written with BEGIN ... END. I would write the same code as if (condition) { for (loop head) { loop body } } Why? I use an emacs at home and at work that does back paren/bracket/brace matching. If thatis sufficiently large that the two opening braces are pushed off the top of the screen when I type }, emacs will copy `for (loop head) {' into the minibuffer at the bottom of the screen. Likewise for the second } typed. If I had indented with the style mentioned above when I type `}' emacs would echo ` {' which means absolutely nothing to me as to which brace I just matched. It all depends on the power of the tools you have available, and *personal* taste. With that said I'm swallowing my original words, and am thinking of porting corewars from C to Draco and giving the program a much needed graphical interface. Seems no one sided with me about reverse keywords, so I'm going to check the grass on the other side... (Corewars ... Scientific American, November 1986(?)) || Sheldon ----========== \\ -----======|| || maloff@calgary.UUCP -----====== // Calgary, Alberta || || {ihnp4!alberta}!calgary!maloff -----== \\ Past Host of the || || .. eventually, we'll all be scaled by zero and ---= // '88 Winter Games || || converge upon the origin ... then we'll party! -= \\ ---==||