Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to print circular structures

21 views
Skip to first unread message

Michael Hudson

unread,
Apr 19, 2001, 4:00:19 PM4/19/01
to
isc...@hotmail.com writes:

> 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

Dorai Sitaram

unread,
Apr 20, 2001, 2:23:46 PM4/20/01
to
In article <m3itk0r...@atrus.jesus.cam.ac.uk>,

Michael Hudson <mw...@cam.ac.uk> wrote:
>--
> Premature optimization is the root of all evil in programming.
> -- C.A.R. Hoare


Wasn't it Donald E Knuth who said that?

--d

Michael Hudson

unread,
Apr 21, 2001, 6:54:08 AM4/21/01
to
ds...@goldshoe.gte.com (Dorai Sitaram) writes:

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?)

Kent M Pitman

unread,
Apr 21, 2001, 7:07:40 AM4/21/01
to
Michael Hudson <mw...@cam.ac.uk> writes:

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)

Roland Kaufmann

unread,
Apr 25, 2001, 8:35:26 AM4/25/01
to

Sorry about being off-topic...

"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

0 new messages