Ted Ashton wrote:
> Thus it was written in the epistle of John Porter,
> > Ken Fox wrote:
> > >
> > > Both of those expressions are the infinite list (-infinity..-1). I
have
> > > no idea how to write that properly 'cause I'm not a math guy. These
> > > things aren't streams (infinite queues) -- they're infinite stacks.
I'm
> > > not sure they have a name in computer science.
> >
> > O.k., here's the basic question.  (If someone has already answered this,
> > I didn't find it satisfactorily comprehensible.  Assume I'm an idiot.)
> >
> > What would be the output of the following program:
> >
> > $\ = "\n";
> > $i = 0;
> > for ( .. -1 ) {
> > $i++;
> > last if $i > 2;
> > print
> > }
> >
> > If the answer is (as I suspect), "This never prints anything; it goes
> > into an infinite loop just trying to generate the first number", then
> > the proposal is absurd and should be scrapped.
>
> By my understanding (which is definitely not very thorough), the output
would
> be a run-time error.

That's my understanding too. I'm trying to pull together a more complete
proposal that describes under what conditions a list can or can not be used
without specifying its domain (amongst other things). Bear with me for a day
or two...


Reply via email to