C bites / programming style
DHowell.ES at Xerox.ARPA
DHowell.ES at Xerox.ARPA
Sat Sep 7 10:06:44 AEST 1985
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 }
Then I can write
...
IF condition THEN
statement_1
ELSE
statement_2
ENDIF
...
Which I think is much cleaner than anything using braces or begin..end.
(Gee, I should write my own language)
Dan <DHowell.ES at Xerox.ARPA>
Disclaimer: I'm having a hard time finding anyone who has my opinions
besides me.
More information about the Comp.lang.c
mailing list