Skip to content
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

[CoroutineAccessors] Pitch. #2596

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nate-chandler
Copy link
Contributor

No description provided.

}
```

If `read` is specified, `get` cannot also be specified.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What implementations are compatible with a read protocol requirement? I imagine that a stored property is and a computed property with a get accessor is not? What about unsafeAddress accessors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising this. Actually, stored, get, read, and unsafeAddress are all compatible with a read requirement. The compiler synthesizes a read in terms of the implementation the user provides. I'll clarify this in the text.

@nate-chandler nate-chandler force-pushed the general-coro/pitch/20241014/1 branch 9 times, most recently from 7b45299 to 5b22f12 Compare October 25, 2024 22:19
@nate-chandler nate-chandler force-pushed the general-coro/pitch/20241014/1 branch 2 times, most recently from 875a739 to 613bc4c Compare October 29, 2024 20:21
@rjmccall rjmccall added the LSG Contains topics under the domain of the Language Steering Group label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSG Contains topics under the domain of the Language Steering Group
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants