Skip to content

Conversation

@kavon
Copy link
Member

@kavon kavon commented Nov 11, 2021

This version drops the escaping-use restriction and unifies the initializers under the concept of flow-sensitive actor isolation. It also covers deinits, sendability, etc.

@kavon kavon changed the title New Actor Initializer Proposal XL New Actor Initializer Proposal XL Pro Max Limited Edition Nov 11, 2021
@kavon kavon changed the title New Actor Initializer Proposal XL Pro Max Limited Edition New Actor Initializer Proposal Nov 11, 2021
@kavon kavon force-pushed the actor-initializers-review2 branch from e755d31 to 3da47c2 Compare December 7, 2021 23:01
@kavon kavon force-pushed the actor-initializers-review2 branch from 3da47c2 to 0ead581 Compare December 7, 2021 23:06
@kavon kavon marked this pull request as ready for review December 8, 2021 00:04
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Looking good, thanks for all the work here!

@ktoso
Copy link
Contributor

ktoso commented Dec 9, 2021

(feel free to just resolve all comments)

@kavon kavon force-pushed the actor-initializers-review2 branch from f94be2c to 6b93ff9 Compare December 9, 2021 22:58
@DougGregor DougGregor merged commit 862ea97 into swiftlang:main Dec 16, 2021
ktoso pushed a commit that referenced this pull request Jan 5, 2022
* Draft of new version for 2nd round of review

* explain that GAICs only need flow-isolation on non-isolated inits

* rewrite explaination of how delegation, isolation, and sendable interact.

* GAIC to GAIT, since it's more than classes

* add an example touching on an edge-case.

* pitching the precise rule for default values

* clarify false sharing

* further clarify stored property solution

* fix some wording

* go with `nonisolated` default-value expressions

* updates to "Global-actor isolation and instance members"
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.

3 participants