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 that if we implement continuations then | coroutines and generators will fall out nearly for free. On the other | hand, if we don't do continuations then I think this will be quite hard.
There is also a nice description of stackless (continuations): http://www.mcmillan-inc.com/stackless.html >From my perspective, generators allow for easy processing of multiple input sources (or multiple parallel regular expression matches in the same imput source) without threads. Since this is a common use case for me, I'd love to see it in Parrot. 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 beacuse it is too complicated. ;) Best, Clark -- Clark C. Evans Axista, Inc. http://www.axista.com 800.926.5525 XCOLLA Collaborative Project Management Software