Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61703 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56483 invoked from network); 24 Jul 2012 17:34:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 17:34:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:52406] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/F2-42538-79CDE005 for ; Tue, 24 Jul 2012 13:34:16 -0400 Received: by ghbg2 with SMTP id g2so7922887ghb.29 for ; Tue, 24 Jul 2012 10:34:13 -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; bh=w/eXPjba1uh47wuhy83M4Aevfc7uTYo1mo45rBX3Gj0=; b=Km5DQveDJi9Mrjyw3Uw87cRJLdMSuM3fhI3I8NW+TSptJCzNfyZVWEjG+YkPoqOTGj bdtROqcBoorZYAbpCU6rtUb8JzqKh4qfmbHEwr2DmW1Pbnpa6JZnJ24KDoirvOGfUV8v VReCM88EYSwWkGbhoZmhleornPu0Y7n110rzewrK2nzbDynpyK7L/6O3sgoZgqqhmii6 B9K1BTpeOCCGkSdgWWCGSzeZruvX5otLsCT2p2XBVRAB8Dp6+9S4ND4N6EPkLugZHQ1B teJfZQ/cJtiA1YPYxAIKa7ctkgS3Ni0zXZfxchgBQXyG6IfW2p7SvnDqf/x0qG3BR/+i hjDQ== MIME-Version: 1.0 Received: by 10.66.85.135 with SMTP id h7mr6256666paz.75.1343151253368; Tue, 24 Jul 2012 10:34:13 -0700 (PDT) Received: by 10.68.31.7 with HTTP; Tue, 24 Jul 2012 10:34:13 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Jul 2012 19:34:13 +0200 Message-ID: To: Sara Golemon Cc: Nikita Popov , Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Generators in PHP From: alex.aulbach@gmail.com (Alex Aulbach) 2012/7/23 Sara Golemon : > Curious if you could expand on that. Generators are iterators, so not sure > what you're asking for. It's the point which is unlogical for me. Maybe it's a question. If the generator is an object with the implementation of an iterator, why do we need to have it as _function_? -- Alex Aulbach