When do you use "if ( a = b )"?

Lars Wirzenius wirzenius at cc.helsinki.fi
Sun Mar 31 01:50:02 AEST 1991


In article <1991Mar29.195622.321 at worf.harvard.edu>, dmm at cfa.harvard.edu (David Meleedy) writes:
> in fact, if it really gets under your skin, you can take the source code,
> use a good editor to replace every EQU string with ==, and then delete the
> define statement at the top.  In fact you could do that will all but the

Of course you could, except if might not work, as EQU might mean
something else inside a string, for instance. You can't even use the
preprocessor, since that would expand everything else as well. 

The major point is, why should you have to? Using define to change the
syntax essentially creates a new language, which forces everyone to
learn it. It is much better for the original programmer to learn to type
better, or to use code templates or an abbreviation expanding editor.

-- 
Lars Wirzenius    wirzenius at cc.helsinki.fi



More information about the Comp.lang.c mailing list