Re: [RFC Discuss] Generator Delegation
| From: | Craig Duncan | Date: | Mon, 02 Mar 2015 09:45:03 +0000 |
| Subject: | Re: [RFC Discuss] Generator Delegation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84157@lists.php.net to get a copy of this message | ||
On 2 March 2015 at 00:17, Niklas Keller <me@kelunik.com> wrote:
>
> The proposed syntax has an issue:
>
> <?php
>
> function a () {
> echo yield * 3;
> }
>
> $a = a();
> $a->send(42);
>
> http://3v4l.org/n1sGb#v550
>
> This is currently valid PHP.
>
>
I've created a test for this, so we don't forget it in future
https://github.com/php/php-src/pull/1133