C bites / programming style
Edward C. Bennett
edward at ukecc.UUCP
Wed Sep 11 01:52:10 AEST 1985
In article <1370 at brl-tgr.ARPA>, DHowell.ES at 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 <DHowell.ES at Xerox.ARPA>
Hmmmm, I think Dan just invented FORTRAN77! (almost)
More information about the Comp.lang.c
mailing list