-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Mark public classes as 'open'. #3876
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
Conversation
public init() {} | ||
} | ||
|
||
@objc @_swift_native_objc_runtime_base(_SwiftNativeNSCharacterSetBase) | ||
public class _SwiftNativeNSCharacterSet { | ||
open class _SwiftNativeNSCharacterSet { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gribozavr, do these need to be open
, or just public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are subclassed in the Foundation module. I would prefer to move them from the core library into the Foundation overlay, but that is a separate project.
Could you add a comment // FIXME(ABI): move into the Foundation overlay and remove 'open'.
to each one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do, thanks for the review.
@mwwa, is DispatchWorkItem intended to be subclassed or no? |
Pretty sure we're aiming for no, though I suspect it never had @das ? |
Yeah, I asked because I did a grep for public classes and filtered out the final ones. |
As an aside, if we could make the other dispatch classes explicitly |
Yeah, the reason the imported types aren't |
@mwwa re DispatchWorkItem, unlike most other Dispatch classes I could see that one being useful to subclass, but I don't think we have the technical ability to do so at this point ? All other Dispatch classes are not currently intended or able to be subclassed. |
Okay, it sounds like it's best to leave the possibility open, i.e. leave it as is. |
@swift-ci Please smoke test |
Part of SE-0117.
636d47a
to
0bbea4c
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test Linux platform |
[pull] swiftwasm from main
Depends on #3875 (or the full implementation of
open
). PR for review by the stdlib team.Before merging this pull request to apple/swift repository:
Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
A smoke test on macOS does the following:
device standard libraries are not built.
version of these tests are not run.
A smoke test on Linux does the following:
tests are not run.
Validation Testing
Lint Testing
Note: Only members of the Apple organization can trigger swift-ci.