abuse of #define

Daryl Clevenger dlc at sei.cmu.edu.ARPA
Thu Sep 19 05:26:13 AEST 1985


I also think that things like :

#define cylce for(;;) {

and others are confusing.  Not only as was previously pointed out can 
unforseen errors creep in, but understanding and modifying code is a pain.
I feel that if someone is using C, then the reason they are doing so is
that it is either their favorite language or the best language for the
application.  This means one must put up with its syntax so that there is
as much uniformity as possible between programs.  Besides Joe Smith may
define foo as something and Frank Jones may define foo as something completely
different.  Imagine switching between programs with both.  YUK!  Fortunately,
most languages do not have a preprocessor as in C, so please don't abuse the
one that C has.  I like to keep my sanity.

	Daryl



More information about the Comp.lang.c mailing list