Path: utzoo!attcan!uunet!portal!cup.portal.com!doug-merritt From: doug-merritt@cup.portal.com Newsgroups: comp.sys.amiga Subject: Re: Draco keywords Message-ID: <6891@cup.portal.com> Date: 26 Jun 88 15:32:58 GMT References: <1809@van-bc.UUCP> <337@uwslh.UUCP> <6830@cup.portal.com> Organization: The Portal System (TM) Lines: 30 XPortal-User-Id: 1.1001.4407 Thad Floryan writes: >STYLE is very important. After just completing a 300,000+ line C port, >in retrospect I'm *GLAD* I used (for example): > for ( loop head ) > { > } >MUCH much easier to see closure when the opening and closing braces are >indented the same. Please, let's not start a style controversy. I've been programming in C since 1976, and I've seen dozens of different styles used, and have prepared company "progamming style sheets", etc. And there's one thing that has become absolutely clear: THERE IS NO ONE SINGLE "RIGHT" WAY TO CODE C!!!!!!!!!!! For instance, the original Bell Labs style is to put the open curly on the same line as the 'for': "for ( loop head ) {". You would say that's bad, apparently. Yet there are thousands of C programmers who are used to this style, and who have no problems keeping track of correct closure. Give people credit. The important thing is to have a consistent style that achieves some particular purpose. The rest is personal preference and quickly becomes a religious war when argued. Doug -- Doug Merritt ucbvax!sun.com!cup.portal.com!doug-merritt or ucbvax!eris!doug (doug@eris.berkeley.edu) or ucbvax!unisoft!certes!doug