Fuel for your flames: Things I would like in CPP
Sam Kendall
kendall at wjh12.UUCP
Tue Oct 2 13:22:21 AEST 1984
Kevin Martin proposes extensions to the CPP, making it a fundamentally
more powerful macro processor in several ways. I will not examine
his proposals in detail, but any consideration of them should include
a lot of thought about the really dangerous and impossible-to-read
things that could be done with them. Martin conveniently provides an
example:
> The combination of the first three features allows generation of ragged
> initialized arrays: Each row is given a name using #eval and token
> concatanation, the row is given storage class 'static', and, by switching
> to another diversion, the row pointer in the edge vector can be
> initialized to point to the row.
Heaven help us!
One should think very carefully before extending the CPP, because macro
semantics are extremely dangerous. And they are dangerous in a
different way than pointers. Complex usage of a powerful macro
processor such as MACRO-11 or m4 is not just hard to make readable; it
is impossible to make readable. I consider the CPP's lack of power a
feature.
Ill-considered wish-lists can be fun; still, I would like to see
proposed features considered guilty until proven innocent, meaning that
people who propose them should make some attempt to justify them beyond
saying "Wow, look what we could do with this!"
Sam Kendall {allegra,ihnp4,ima,amd}!wjh12!kendall
Delft Consulting Corp. decvax!genrad!wjh12!kendall
More information about the Comp.lang.c
mailing list