Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61833 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86533 invoked from network); 27 Jul 2012 08:06:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2012 08:06:56 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:42132] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/F0-14209-F1C42105 for ; Fri, 27 Jul 2012 04:06:55 -0400 Received: by lbgc1 with SMTP id c1so2203681lbg.29 for ; Fri, 27 Jul 2012 01:06:52 -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=f2PEqGuiFW4HPQ4p8k47QUMUkrfrxxHfIUXcrihVebg=; b=eClCsoNeGkjz0MdYxdNBWHZlq5PeBuhYV4Oz/aeGGaT5TwIlMPIaTbJKvw8AtZdwNN 0FpHqqIa5MUkGTCKR8VS1uqZAEYiBGoI4SfdswaNvmdIoC7/8/fnkZk+e6QlRCUvcegT 1/L5cx20rRNC4Q8YRSsI5Jmq8Z3yyfg3uOYmuy8ii5fzhT0SfUD2dwNZjGXjaC13qRMU oQgSfrqIPqumJHElA8aqNhQDYNCJMl81qtjcX2wJMzo7MJhxJcatiA6apsBDif+tWNnz t/hTaxh2USzBKFX2gY0nbzeajZU9olJsFYWwKvu9DyLq3dnmXKs4Fj84pijbFLIuiuuq JpQg== MIME-Version: 1.0 Received: by 10.112.27.226 with SMTP id w2mr1005924lbg.57.1343376412408; Fri, 27 Jul 2012 01:06:52 -0700 (PDT) Received: by 10.152.114.70 with HTTP; Fri, 27 Jul 2012 01:06:52 -0700 (PDT) In-Reply-To: <501249B6.5070507@lsces.co.uk> References: <500EE3B9.8010902@ajf.me> <500EEA76.1030407@ajf.me> <5010138D.5050804@ajf.me> <501015B9.6050704@ajf.me> <501058B9.5050004@lsces.co.uk> <501249B6.5070507@lsces.co.uk> Date: Fri, 27 Jul 2012 10:06:52 +0200 Message-ID: To: Lester Caine Cc: PHP internals , Alex Aulbach Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Generators in PHP From: nikita.ppv@gmail.com (Nikita Popov) On Fri, Jul 27, 2012 at 9:56 AM, Lester Caine wrote: > I'll ask again since no one has answered ... > > In a different way ... > Is the only thing that changes the 'function' into a 'generator' replacing > the call to process the data with 'yield'? ( That would be 'SUSPEND' in an > SQL procedure ) ... > > So how DOES an IDE work out the flow in order to correctly check that > variables are defined? > > As always, my IDE provides a lot of 'sexy' stuff so that I don't need to > have it built in to the language, and I still can't see how a lot of what is > being loaded in helps with performance which is the only thing that I am > interested in. Performance wise why is yield better than just directly > calling a function to handle the data? Lester Caine and Alex Aulbach, may I ask you to continue this discussion in a separate thread? I am really interested in constructive responses about the generator RFC, but your discussion is generating a lot of noise, which makes it very hard for me to pick out the few mails that are of interest to me. If you could open a new thread (like "Generator keyword") it would help a lot. Thanks, Nikita