> How can you print circular structures, so that this doesn't get the
> toplevel in an infinite loop?
Set *print-circle* to t.
Cheers,
M.
--
Premature optimization is the root of all evil in programming.
-- C.A.R. Hoare
Wasn't it Donald E Knuth who said that?
--d
I've seen it attributed to both, and I've seen it formulated
differently (all on the ever-accurate wonderful world wide web), but
I'd admit to not being sure.
More authoratative references would be appreciated, but until then
I've modified my sigmonster file to say:
--
Premature optimization is the root of all evil in programming.
-- C.A.R. Hoare (or was it Knuth?)
I have no knowledge of the truth on this one one way or the other.
It will be weirdly ironic, though hardly uniquely so in CS, if it is
Knuth. His life's work seems to be about optimization, and I daresay
it's led directly to some curious evils, viz, TeX qua programming language.
(Mind you, I've used TeX many a time, but I'd say it plainly suffers from
an overemphasis on efficiency at the price of clarity and debuggability
all over.)
--Kent
- - - - - -
"You can't do that in limited horizontal mode."
--Knuth
(quoted from memory; might be off slightly in the wording -kmp)
"Premature optimization is the root of all evil."
Structured Programming with goto Statements
Donald E. Knuth
Computing Surveys, Volume 6, December 1974, pp. 261--301
reprinted in
Literate Programming
CSLI Lecture Notes Number 27
ISBN 0-9370-7380-6
Knuth extensively cites Hoare in his article, but not for the statment
in question.
--
best regards
Roland Kaufmann