eRFC: Experimentally add coroutines to Rust by alexcrichton · Pull Request #2033 · rust-lang/rfcs (original) (raw)
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
This is an experimental RFC for adding a new feature to the language, coroutines (also commonly referred to as generators). This RFC is intended to be relatively lightweight and bikeshed free as it will be followed by a separate RFC in the future for stabilization of this language feature. The intention here is to make sure everyone's on board with the general idea of coroutines/generators being added to the Rust compiler and available for use on the nightly channel.
nikomatsakis added the T-lang
Relevant to the language team, which will review and decide on the RFC.
label
chpio mentioned this pull request
This was referenced
Oct 17, 2019
spikespaz pushed a commit to spikespaz/dotwalk-rs that referenced this pull request
Generator support
This adds experimental support for generators intended to land once rust-lang/rfcs#2033 is approved.
This is not yet ready to be merged. Things to do:
- Make closure arguments on generators an error
- Spot FIXMEs
- Pass make tidy
- Write tests
- Document the current syntax and semantics for generators somewhere
- Use proper error message numbers
-
Make the implicit argument type default to()
rust-lang locked as spam and limited conversation to collaborators