Hi Anthony, Ok, I see that now. I know you're not necessarily saying what's been proposed is a good idea but I can see a benefit in pythonic style generators as a separate piece of functionality, implementing a yield function, has this ever been discussed before? My apologies if this is the case I've not seen it since I've been following this list.
I know there is the SPL Iterator, but just as in the example you provided implementations *can* be verbose and convoluted. Cheers, Sam On Mon, Apr 2, 2012 at 10:34 PM, Anthony Ferrara <ircmax...@gmail.com>wrote: > Sam, > > I'm not saying it's a good idea, but this would allow for pythonic > style generators. http://wiki.python.org/moin/Generators > > Just pointing out one potential use-case... > > Anthony > > On Mon, Apr 2, 2012 at 4:35 PM, Samuel Giles <sam.e.gi...@gmail.com> > wrote: > > My major concern would be, how does this* really* add to PHP? Perhaps > I'm > > missing the point, but what would this allow that can't be done in some > > form using well defined "patterns", for lack of a better word. > > > > I'm not keen on the idea of throwing things such as Interrupts either, it > > doesn't quite fit with their general use case. > > > > Sam >