From: Michael Hudson
Subject: Re: How to print circular structures
Date: 
Message-ID: <m3itk0r770.fsf@atrus.jesus.cam.ac.uk>
·······@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

From: Dorai Sitaram
Subject: Re: How to print circular structures
Date: 
Message-ID: <9bpuri$ngb$1@news.gte.com>
In article <··············@atrus.jesus.cam.ac.uk>,
Michael Hudson  <·····@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
From: Michael Hudson
Subject: Re: How to print circular structures
Date: 
Message-ID: <m3wv8eo75b.fsf@atrus.jesus.cam.ac.uk>
····@goldshoe.gte.com (Dorai Sitaram) writes:

> In article <··············@atrus.jesus.cam.ac.uk>,
> Michael Hudson  <·····@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?

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?)
From: Kent M Pitman
Subject: Re: How to print circular structures
Date: 
Message-ID: <sfwg0f2zf2b.fsf@world.std.com>
Michael Hudson <·····@cam.ac.uk> writes:

> ····@goldshoe.gte.com (Dorai Sitaram) writes:
> 
> > In article <··············@atrus.jesus.cam.ac.uk>,
> > Michael Hudson  <·····@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?
> 
> 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)
From: Roland Kaufmann
Subject: Re: How to print circular structures
Date: 
Message-ID: <tl2n195b1io.fsf@space.at>
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