6 character external identifiers
Guido van Rossum
guido at mcvax.UUCP
Thu Jul 12 22:27:53 AEST 1984
There is a rather elegant way to replace long external identifiers by
shorter ones: use the C preprocessor. It should be easy to write a
program which generates a set of lines to a file "rename.h" like:
#define ThisIsAVeryLongName _1ThisIsAVeryLongName
#define ThisIsAnother _2ThisIsAnother
etc.
The advantage is clear: no need to read a program full of cryptical short
names. You may also choose your own abbreviations, if this help interpreting
debugger or loader diagnostics. It especially works well with the
ANSI standard because the preprocessor has to distinguish such long
names. Also, it is easy to add this later to any existing program.
[This idea was used by James Gosling to get Emacs on a PDP. He even modified
the preprocessor to *automatically* #include a file "map.h" in front of every
file processed. I wonder if he succeeded, given the size of the code :-)]
--
Guido van Rossum, "Stamp Out BASIC" Committee, CWI, Amsterdam
guido @ mcvax
More information about the Comp.lang.c
mailing list