Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84145 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29440 invoked from network); 2 Mar 2015 06:34:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 06:34:25 -0000 Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:48587] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/80-25952-F6404F45 for ; Mon, 02 Mar 2015 01:34:24 -0500 Received: (qmail 15132 invoked by uid 1009); 2 Mar 2015 07:34:20 +0100 Received: from 209.85.216.180 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/20133. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.216.180):. Processed in 0.264733 secs); 02 Mar 2015 06:34:20 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.180):. Processed in 0.264733 secs Process 15118) Received: from mail-qc0-f180.google.com (gmail@bof.de@209.85.216.180) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 2 Mar 2015 07:34:20 +0100 Received: by qcxm20 with SMTP id m20so23010810qcx.0 for ; Sun, 01 Mar 2015 22:34:18 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.140.102.170 with SMTP id w39mr46531916qge.100.1425278058524; Sun, 01 Mar 2015 22:34:18 -0800 (PST) Received: by 10.140.82.198 with HTTP; Sun, 1 Mar 2015 22:34:18 -0800 (PST) Received: by 10.140.82.198 with HTTP; Sun, 1 Mar 2015 22:34:18 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2015 07:34:18 +0100 Message-ID: To: Daniel Lowrey Cc: internals Content-Type: multipart/alternative; boundary=001a11c1672c62856305104868c3 Subject: Re: [PHP-DEV] [RFC Discuss] Generator Delegation From: php@bof.de (Patrick Schaaf) --001a11c1672c62856305104868c3 Content-Type: text/plain; charset=UTF-8 Am 02.03.2015 00:52 schrieb "Daniel Lowrey" : > > I'd like to initiate discussion on a proposal to implement generator > delegation via the following new syntax inside generator functions: > > yield * > > The Generator Delegation RFC is available here: > > https://wiki.php.net/rfc/generator-delegation I like the feature. The syntax is awful. What about "yield use (expr)"? No new keywords, somewhat gramatical, and currently invalid syntax, as far as I can tell. Patrick --001a11c1672c62856305104868c3--