Re: Generators in PHP

From: Date: Wed, 06 Jun 2012 08:11:57 +0000
Subject: Re: Generators in PHP
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 06/06/2012 04:42 AM, Laruence wrote:
> On Wed, Jun 6, 2012 at 10:27 AM, Laruence <[email protected]> wrote:
>> On Wed, Jun 6, 2012 at 10:15 AM, Laruence <[email protected]> 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



Thread (142 messages)

« previous php.internals (#60752) next »