-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Class modifiers] Core library updates #50736
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
Comments
We should decide what (if any) changes we want to make in the core libraries to use these features. @lrhn do you want to drive that? I'm happy to be involved. cc @kallentu @munificent @natebosch @jakemac53 @stereotype441 @eernstg |
Yes, there's definitely some stuff we can do here. My hope is that the special case logic in the language spec around certain types being "sealed" can be replaced with uses of the new modifiers. Off the top of my head:
|
The already unimplementable types are a given, and should be safe (and making I'd make Could mark the I want to make I want to make We should consider Also consider our annotation classes A bunch of our implementation classes are effectively interface classes, because we have only private generative constructors. Another bunch of classes are interface classes. If we have blocked their default constructor, we can make them Edit: We should consider making pure interfaces (which have no implementation) Outside of the "core" platform libraries, I have less idea. |
I also consider whether we should The I'd be fine with making both |
The It shouldn't be a problem to extend them instead of implementing, unless a class already has another superclass. |
The Consider whether (We probably cannot make |
The CL for this is https://dart-review.googlesource.com/c/sdk/+/284304 |
Does this need to be beta 2? |
Tied to where we enforce |
@lrhn @leafpetersen - What's the update here? Are we still trying get anything for the beta? |
https://dart-review.git.corp.google.com/c/sdk/+/287600 just landed, hopefully it sticks. @lrhn @natebosch are there any other CLs we're still trying to land? |
I believe that last CL for the "core" (backend-agnostic) platform libraries: For the VM: @brianquinlan is doing I have no idea about the web libraries. |
I would expect we could make every class |
Yep Not. Blocked by Flutter not having been migrated yet. |
I actually have one more CL. "Just one more thing." |
I'm going to close this out, anything further will be a cherry pick. |
No description provided.
The text was updated successfully, but these errors were encountered: