Re: [RFC Discuss] Generator Delegation
| From: | Patrick Schaaf | Date: | Mon, 02 Mar 2015 06:34:18 +0000 |
| Subject: | Re: [RFC Discuss] Generator Delegation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84145@lists.php.net to get a copy of this message | ||
Am 02.03.2015 00:52 schrieb "Daniel Lowrey" <rdlowrey@php.net>:
>
> I'd like to initiate discussion on a proposal to implement generator
> delegation via the following new syntax inside generator functions:
>
> yield * <expr>
>
> 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