Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukecc.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!ukecc!edward From: edward@ukecc.UUCP (Edward C. Bennett) Newsgroups: net.lang.c Subject: Re: C bites / programming style Message-ID: <227@ukecc.UUCP> Date: Tue, 10-Sep-85 11:52:10 EDT Article-I.D.: ukecc.227 Posted: Tue Sep 10 11:52:10 1985 Date-Received: Thu, 12-Sep-85 11:07:15 EDT References: <1370@brl-tgr.ARPA> Organization: Univ. of Ky. Engineering Computing Center Lines: 20 In article <1370@brl-tgr.ARPA>, DHowell.ES@XEROX.ARPA writes: > Personally, I don't really like the {} braces of C, nor the "begin..end" > of Pascal and its relatives. This is one thing that Ada has going for > it with its "if..then..endif" style. > I like to use these definitions: > #define IF if( > #define THEN ){ > #define ELSE }else{ > #define ENDIF } > ... > IF condition THEN > statement_1 > ELSE > statement_2 > ENDIF > ... > Which I think is much cleaner than anything using braces or begin..end. > Dan Hmmmm, I think Dan just invented FORTRAN77! (almost)