-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid sendable key paths in dynamic member lookup (#245)
There are a few compiler bugs that prevent us from declaring sendability for key paths where it's needed. First, doing so breaks autocomplete, which really hurts the developer experience: swiftlang/swift#77035 Second, even though recovering autocomplete might be preferable at the cost of safety, there is no safety to begin with right now because sendable diagnostics don't propagate through dynamic member lookup: swiftlang/swift#77105 Because of this, let's only use non-sendable key paths for now, and force cast them under the hood.
- Loading branch information
1 parent
f060948
commit 07a99a9
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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