Re: Generators in PHP
| From: | Pierre Joye | Date: | Wed, 06 Jun 2012 09:39:47 +0000 |
| Subject: | Re: Generators in PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60754@lists.php.net to get a copy of this message | ||
hi Rasmus, Sara,
Adding Sara to the loop as she is around and may miss that thread. We
also tried to convince her to contribute that back to core :)
On Wed, Jun 6, 2012 at 10:11 AM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
> On 06/06/2012 04:42 AM, Laruence wrote:
>> On Wed, Jun 6, 2012 at 10:27 AM, Laruence <laruence@php.net> wrote:
>>> On Wed, Jun 6, 2012 at 10:15 AM, Laruence <laruence@php.net> wrote:
>>>> Hi Nikita:
>>>>
>>>> the most important part to me is how did you implemented
>>>>
yield
>>>> keyword, is there a whole patch file I can look into?
>>> Nervermind, I will check the branch out later
>>>
>>> thanks
>>
>> After a quick look, I think the main idea should goes to two parts:
>>
>> 1. implement yield (Zend)
>> 2. implement spl_generators but not generator class (Spl)
>
> yield is interesting. It is one of the main features Facebook added, so
> it might be worthwhile poking someone there for their implementation
> details in order to at least be somewhat compatible.
>
> -Rasmus
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org