-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SE-0358][stdlib] Adopt primary associated types #41843
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
[SE-0358][stdlib] Adopt primary associated types #41843
Conversation
c9c82fd
to
4f77602
Compare
This now reflects the latest revision of SE-0346, which made things a lot nicer! |
@swift-ci test |
(The failed builds are expected; this feature is currently gated on |
@swift-ci test |
Status of this work? This is blocking regex algorithms, which currently have an ABI of returning Array (i.e. force an eager and allocation) |
Co-authored-by: Ben Rimmington <[email protected]>
…zyCollectionProtocol for now
3694676
to
eed5bd1
Compare
…buted actor protocols" This reverts commit eed5bd1.
@swift-ci test |
`Element` is expected to always be `Self`. `RawValue` would be a better choice for the primary type ("option set of UInt32"), but to avoid confusion, it seems better to just omit the declaration, at least for now.
@swift-ci test |
@swift-ci test macOS platform |
SE-0358 is still in review due to I think we should provisionally land this to unblock the work on Regex matches. Any last-minute updates are very unlikely to affect the collection protocol hierarchy, and regular expressions will not depend on anything else in here. |
This draft PR experiments with the adoption of the proposed new language feature for lightweight same-type syntax for primary associated types in the Swift Standard Library.