Repository navigation
Spec v7.3 (D69): generators are push-based - #1723
Merged
Merged
Conversation
…mer's loop body at each yield §13.4 rewritten: a generator value holds its arguments and runs when consumed through Gen[T].each; a consumer's stop leaves the generator at its yield as if by return, releasing its scopes; a generator may yield views of its own locals; `g.pull()` gives a fiber-backed Iter[T] where code must step the sequence. §14.20's table, the §14 ephemeral-handle cross-reference and the §13.1 zero-copy example follow. The state-machine model, the no-references-across-yield rule and the .await prohibition are retired. The nebula example's generator prose follows the spec (D55 ruling 4: a spec change updates its examples in the same change). The compiler is NON-COMPLIANT until generators lower as calls.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrites §13.4 per Eric's ruling (D69). Docs + example prose only; spec-inventory-check green. Draft until Eric blesses the exact words. The compiler is NON-COMPLIANT until generators lower as calls (implementation follows in its own PR).