#PrettyPrint.c
Ben,
Though (in case you didn't know) i am not a C coder, I rather like your style
as outlined, and for the reasons you gave. The only drawback I can see to it is
the extra verbosity, normally eschewed by C people.
One thing strikes me though, and that is that your prettyPrint porgram is, as
you said, meant to TELL YOU when you screwed up. (or was it UEDIT?, No matter)
Anyway, this smack of Pascalism, Mosula-2ism, and COMALism. Shouldn't you
really, for the sake of all other C programmers, bite the bullet and write the
code as K&R (praise be) meant 'er to be writ, with arcane indents, blocks of
punctuation and single character variables unspoiled by the verbose traces of
other languages?
Seriously, typos are the bane of programmers, yet need not be. C is helped by
afterthoughts… programs like lint, Cdecl, and prettyPrint abound to do the
things that a Modula-2 compiler does when you compile.
Regards, Larry.