Re: [VOTE] Generator Delegation
| From: | Damien Tournoud | Date: | Sun, 15 Mar 2015 20:13:46 +0000 |
| Subject: | Re: [VOTE] Generator Delegation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84898@lists.php.net to get a copy of this message | ||
Hi Daniel,
Would you mind clarifying the relationship between the "Generator
Delegation" RFC and the "Generator Return Expressions" RFC?
While I really appreciate the "Generator Delegation" RFC, the "Generator
Return Expressions" looks both unnecessary and kind of a hack to me. In
evented system based on coroutine/generators (for example Python
greenlet/gevent) the ability to "return a value" is handled higher up than
the generator/coroutine itself, which has other advantages (like the
ability to yield until the value is available, instead of simply throwing,
etc...). Essentially, "returning a value" is an abstraction of the
cooperative framework (usually an event loop), not of the generator itself.
Damien
On Sun, Mar 15, 2015 at 8:18 PM, Daniel Lowrey <rdlowrey@php.net> wrote:
> Hi folks!
>
> As the discussion period has reached its conclusion I'd like to announce a
> two week voting period on the Generator Delegation RFC here:
>
> https://wiki.php.net/rfc/generator-delegation
>
> Voting ends Sunday, March 29.
>
> I know everyone is busy and your time is valuable; thanks for spending a
> few minutes to review the proposal. If you have any questions please don't
> hesitate to ask.
>
> -Daniel
>