At 04:08 PM 12/31/2001 +0100, Benoit Cerrina wrote:
> >
> > If you only allow yeilding from the outermost level of scope in a routine,
> > you can do evil things with Duff's Device. Which is what Python does. (But
> > it's sufficient for most purposes)
> >
> > Dan
> >
>Duff's device being evil eno
>
> If you only allow yeilding from the outermost level of scope in a routine,
> you can do evil things with Duff's Device. Which is what Python does. (But
> it's sufficient for most purposes)
>
> Dan
>
Duff's device being evil enough in and out of itself I'm not sure I see what
this
has to do wit
At 03:01 AM 12/31/2001 -0500, Sam Tregar wrote:
>After reading that I'm only left wondering how this concept connects with
>continuations. Something tells me that if we implement continuations then
>coroutines and generators will fall out nearly for free. On the other
>hand, if we don't do conti
At 03:47 AM 12/31/2001 -0500, Clark C . Evans wrote:
>It seems that the Python people have figured a simple way to
>implement generators.
If you only allow yeilding from the outermost level of scope in a routine,
you can do evil things with Duff's Device. Which is what Python does. (But
it's su
> As
> for general continuations, I can't remember when I've last used
> co-routines... college?
>
> It seems that the Python people have figured a simple way to
> implement generators. That said... I'd hate to have a generator
> request promoted into a continuation request and then get dumped
>
On Mon, Dec 31, 2001 at 03:01:44AM -0500, Sam Tregar wrote:
| The generator PEP which contains a more complete discussion:
|
|http://python.sourceforge.net/peps/pep-0255.html
|
| After reading that I'm only left wondering how this concept connects with
| continuations. Something tells me th
On Mon, 31 Dec 2001, Clark C . Evans wrote:
> Hello. I was wondering if Parrot is going to support
> Generators. A generator is a function that returns
> multiple times, and I believe, was first made available
> in the language ICON. Now, ICON may have taken it a
> bit too far (everything is
Hello. I was wondering if Parrot is going to support
Generators. A generator is a function that returns
multiple times, and I believe, was first made available
in the language ICON. Now, ICON may have taken it a
bit too far (everything is a generator), however,
Python's newest version support