Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11180 invoked from network); 5 Jun 2012 17:35:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2012 17:35:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:40732] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/9A-46677-6534ECF4 for ; Tue, 05 Jun 2012 13:35:18 -0400 Received: by lagy4 with SMTP id y4so4388732lag.29 for ; Tue, 05 Jun 2012 10:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0g0KlRYWJOfBAlIuqeOR5m1CMTFg79aHFfB/i27TPGM=; b=b/5MjRrBlMrgJPbHjOFcJ9tJk8sSgp4kM6dvx8u0th+EqIabA0ookqmSttyT//lHXV MhTfIoRXgO6JPKyo76pNpPWtx0N+ieu/DAl4hnGDFupt0Bpstln8A8RBoEq10J2jAczv TY2Oxlyyt+hJkQEDZSWwUsGL6X1E/u3XrbD5XzECcneigTa8T7ty27+yBX2bPG9tmXz2 4zHGw47tyuEnwsqSvQJ5mhDAq4TQT2IxHtKjvV7eHoEteOTE5OEknMSaE8lhqsOcT8w4 otnF3jlze1hcblNfsxkrLosBCwjKzCjI54QnRVVYChdvPFw356mijF97dD0VkdDmOFxU mjCA== MIME-Version: 1.0 Received: by 10.152.125.116 with SMTP id mp20mr17723450lab.19.1338917714721; Tue, 05 Jun 2012 10:35:14 -0700 (PDT) Received: by 10.152.114.70 with HTTP; Tue, 5 Jun 2012 10:35:14 -0700 (PDT) Date: Tue, 5 Jun 2012 19:35:14 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Generators in PHP From: nikita.ppv@googlemail.com (Nikita Popov) Hi internals! In the last few days I've created a proof of concept implementation for generators in PHP. It's not yet complete, but the basic functionality is there: https://github.com/nikic/php-src/tree/addGeneratorsSupport The implementation is outlined in the RFC-stub here: https://wiki.php.net/rfc/generators Before going any further I'd like to get some comments about what you think of adding generator support to PHP. If you don't know what generators are you should have a look at the "Introduction" section in the above RFC or in the Python documentation at http://wiki.python.org/moin/Generators. Nikita