Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36882 invoked from network); 25 Jul 2012 02:19:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2012 02:19:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:35900] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/A7-27263-4C75F005 for ; Tue, 24 Jul 2012 22:19:49 -0400 Received: by ghbg2 with SMTP id g2so285026ghb.29 for ; Tue, 24 Jul 2012 19:19:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=lmer+7LcVwuaYe4SxeQRYiF0BgYTniiz3PLsnrJ+W+Y=; b=ff5y/wAMn75vZZotas/CLhf6MSEiP/T6p0RtD5E1LoehWwsBYbexI9ubhRAvdS32Vw QKnrjTHBc9sxNj9wN86Cyw1rcml63GzCSAfGDbmFkhGpOKrZWlyV24LLFkf+xu+WaEQN UNm2qW/AlAbmPaW1FZnoyXWtykzp4b6VvYngffPSAVkkeuuLyp5y57DeqiLu45vt0Az9 +oykw4+Oie177XClQKTF3irV39S2b1e6Noa65wZWhaV63VtWV4MUAOsyVfPOvDnjuACK ey3+g58AZhIDp4IJMfJyQKJpSfLlYnxZvWmKWJ5k8I+JwTsAW8wue78cholWlhMNdSu2 wsfQ== MIME-Version: 1.0 Received: by 10.42.19.131 with SMTP id c3mr20283901icb.36.1343182785053; Tue, 24 Jul 2012 19:19:45 -0700 (PDT) Sender: php@golemon.com Received: by 10.64.16.35 with HTTP; Tue, 24 Jul 2012 19:19:44 -0700 (PDT) X-Originating-IP: [67.164.28.199] In-Reply-To: References: <500EDCC7.1020402@ajf.me> Date: Tue, 24 Jul 2012 19:19:44 -0700 X-Google-Sender-Auth: oktoq4UTKKY4nQu_TU3JMA-xsr8 Message-ID: To: Alex Aulbach Cc: Gustavo Lopes , Yahav Gindi Bar , internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf3003c39cc5827604c59e1c94 X-Gm-Message-State: ALoCoQmvCDTd9/M2zegPxF9yu9IYm0FLNflmwGsz6N3f4zepFQTWjzPHIgoExClWs6SHvXtNbnk0 Subject: Re: [PHP-DEV] Re: Generators in PHP From: pollita@php.net (Sara Golemon) --20cf3003c39cc5827604c59e1c94 Content-Type: text/plain; charset=ISO-8859-1 > > Or when you have programming errors, when you write > > function blubb() > { > ... yields... > ... > ... return.... > } > > (you may only see the "return"). > > But that's okay, because PHP *does* see both, and it tells you "yield may not be used with return" in a lovely little parser error. Some developers consider this a useful hint. -Sara --20cf3003c39cc5827604c59e1c94--