Meta: PEP discussion (was Re: PEP 255: Simple Generators)

Steve Holden sholden at holdenweb.com
Fri Jun 22 03:45:06 CEST 2001


I seem to remember an Icon generator function would use

    suspend val

to return val as the next value in the generator's sequence. The really nice
part was that there were two loping constructs, one of which was explicitly
used in a generative context, so you'd say (something like):

    i := every gen(x, y)

where gen() was a generator.

regards
 Steve
--
http://www.holdenweb.com/


"Paul Prescod" <paulp at ActiveState.com> wrote in message
news:mailman.993092013.32732.python-list at python.org...
> "Steven D. Majewski" wrote:
> >
> >...
> >
> > Also, as another former Icon-er, I tend to lean with Tim
> > on the syntax issue.
>
> Did icon switch from eager evaluation of the function to lazy evaluation
> based on the occurrence of a keyword somewhere in the function?
>
> --
> Take a recipe. Leave a recipe.
> Python Cookbook!  http://www.ActiveState.com/pythoncookbook
>
>





More information about the Python-list mailing list