Re: RFC Draft: Comprehensions
| From: | Robert Hickman | Date: | Thu, 21 Mar 2019 11:00:41 +0000 |
| Subject: | Re: RFC Draft: Comprehensions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104840@lists.php.net to get a copy of this message | ||
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.collins@gmail.com> wrote:
>
> On 21 March 2019 00:39:20 GMT+00:00, Robert Hickman <robehickman@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
>