I was only making a point for where a non-generator version of comprehensions could be useful, under the premise "Therefore, a lazy-evaluating syntax is more powerful, in that it can do everything an eager-evaluating one can do *and more*.". This implies that it dosn't have any downsides, whereas performance may be a downside.
On Thu, 21 Mar 2019 at 07:54, Rowan Collins <rowan.coll...@gmail.com> wrote: > > On 21 March 2019 00:39:20 GMT+00:00, Robert Hickman <robehick...@gmail.com> > wrote: > >For my use case of PHP, get some content from a DB and dump it into a > >template, I don't see much benefit to generators. > > With respect, so what? I never said that every use case benefits from > generators, nor are we discussing whether generators should be added to the > language. > > Regards, > > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php