Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60754 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90348 invoked from network); 6 Jun 2012 09:39:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2012 09:39:53 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:59882] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/F2-08677-5652FCF4 for ; Wed, 06 Jun 2012 05:39:51 -0400 Received: by ggnf2 with SMTP id f2so5351796ggn.29 for ; Wed, 06 Jun 2012 02:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=1XG1VvjV1Xu54Cv0zMFS83usEYCKZdhzL14xiGTMuJ8=; b=i6M7BgcQmJtqoIH36cj0yVeNHUhNCdY6Mccwrs8gWIUCFEqxGkoxIN0L9ioMZHm0o6 w32K5V6yMEburxy84SKiggrlrMN89Cnapyso0JhMnFxntLa55V5Fq40BepSCLVgNhy48 19NzXcqcIFZk1k4hEWllxioiBu/hRhZwVpluNKV0e6vgcCz9DBnxPCSB95NeMO3WxJZL wU7Xtu485TEIyC4W8KYn/gIXfcHOBXs4SRSs7+4uqRmN8HbTrJ3cEziDCesIlmCP2Q+B 4DHsgXsI2xhHURTqz4syxYx6VVRBLU/Zh1HF4QWRgZBvmOHhUMngfW/1QfpPz3HQen/T Jj1w== MIME-Version: 1.0 Received: by 10.236.186.72 with SMTP id v48mr15082778yhm.18.1338975587367; Wed, 06 Jun 2012 02:39:47 -0700 (PDT) Received: by 10.147.113.7 with HTTP; Wed, 6 Jun 2012 02:39:47 -0700 (PDT) In-Reply-To: <4FCF10CD.8060406@lerdorf.com> References: <4FCF10CD.8060406@lerdorf.com> Date: Wed, 6 Jun 2012 11:39:47 +0200 Message-ID: To: Rasmus Lerdorf , Sara Golemon Cc: Laruence , Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Generators in PHP From: pierre.php@gmail.com (Pierre Joye) 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 wrote: > On 06/06/2012 04:42 AM, Laruence wrote: >> On Wed, Jun 6, 2012 at 10:27 AM, Laruence wrote: >>> On Wed, Jun 6, 2012 at 10:15 AM, Laruence wrote: >>>> Hi Nikita: >>>> >>>> =A0 =A0the most important part to me is how did you implemented `yield= ` >>>> keyword, =A0 is there a whole patch file I can look into? >>> Nervermind, =A0I will check the branch out later >>> >>> thanks >> >> After a quick look, =A0I 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 > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org