Efficiency AND Readability

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Nov 10 10:46:52 AEST 1988


In article <3386 at geaclib.UUCP> daveb at geaclib.UUCP (David Collier-Brown) writes:
>  A good counter-example to the claim that efficient code is
>unreadable (and also the claim that its non-portable) exists in the
>TeX typesetting implementation.
>  The author was concerned with all three, and so invented a
>language (formerly called DOC, now WEB) to allow the three to
>coexist.  Regrettably, it works best for monstrous great books, not
>little critical bits...

WEB has little to do with portability; in fact Knuth relied heavily
on the existence of an OTHERWISE clause in CASE statements throughout
the TEX source, and that is not standard Pascal.  There is also debate
about whether WEB is really worthwhile; a couple of years ago in the
Programming Pearls column in CACM, Knuth contributed a WEB example
which Doug McIlroy really tore apart.

We should probably limit the code readability discussion to code
as it is prepared for a standard compiler, not a version requiring
preprocessing with some additional tool.



More information about the Comp.lang.c mailing list