Skip to content

Clarify that taking input in coroutines currently uses 'yield expressions' #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/design_notes/general_coroutines.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async gen {
- The major disagreement between past proposals is whether to use "yield
expressions" or "magic mutation".
- Yield expression: `let after = yield output;`
- Used by [eRFC-2033][1]
- Used by [eRFC-2033][1] and is the current implementation.
- Magic mutation: `let before = arg; yield output; let after = arg;`
- Used by [RFC-2781][2] and [MCP-49][3]
- Many people have a strong gut preference for yield expressions.
Expand Down