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

[stdlib] Optional: Allow non-escapable wrapped types #73258

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lorentey
Copy link
Member

This quick experimental PR generalizes Optional to support non-escapable payloads, itself becoming conditionally escapable.

@lorentey
Copy link
Member Author

@swift-ci test

@Azoy
Copy link
Member

Azoy commented Apr 26, 2024

Can we get the ExpressibleByNilLiteral and init(_ wrapped: consuming Wrapped) initializer supported?

@lorentey
Copy link
Member Author

For ExpressibleByNilLiteral, I believe we still need to figure out how to express indefinite lifetime for the result of the init(nilLiteral:) initializer.

@lorentey
Copy link
Member Author

lorentey commented May 3, 2024

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants