# [RFC Announce] Generator Return Expressions

- Thread: https://externals.io/message/83241
- Original archive: https://news-web.php.net/php.internals/83241
- Started by Daniel Lowrey on 2015-02-19T21:19:59+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #83241 — Daniel Lowrey — 2015-02-19T21:19:59+00:00

URL: https://externals.io/message/83241#83241

Hi folks :)

I know everyone is already quite busy attempting to resolve scalar
types, assertions, etc. So let me add another RFC to your
pre-feature-freeze cognitive overload! This proposal allows the
specification of and access to Generator return expressions:

https://wiki.php.net/rfc/generator-return-expressions

The proposed functionality allows for more robust coroutine multitasking
and lays the groundwork for the future implementation of the `yield from`
sub-generator syntax found in other languages. Please take a few minutes in
the coming days to read the proposal and ask any questions you may have as
I plan to initiate a vote for inclusion in PHP 7 as soon as the required
discussion period elapses.

Thanks for your time and thanks to Nikita for writing the patch to make
this happen.

- Daniel
