[Python-Dev] Re: anonymous blocks
Samuele Pedroni
pedronis at strakt.com
Tue Apr 26 19:12:22 CEST 2005
Michael Hudson wrote:
> The history of iterators and generators could be summarized by saying
> that an API was invented, then it turned out that in practice one way
> of implementing them -- generators -- was almost universally useful.
>
> This proposal seems a bit like an effort to make generators good at
> doing something that they aren't really intended -- or dare I say
> suited? -- for. The tail wagging the dog so to speak.
>
it is fun because the two of us sort of already had this discussion in
compressed form a lot of time ago:
http://groups-beta.google.com/groups?q=with+generators+pedronis&hl=en
not that I was really conviced about my idea at the time which was very
embrional, and in fact I'm bit skeptical right now about how much
bending or not of generators makes sense, especially for a learnability
point of view.
More information about the Python-Dev
mailing list