-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
coreimpl inconsistent between different Dart implementations #949
Comments
The "coreimpl" is not supposed to be a public interface, but rather (varying) implementations of core interfaces. (Originally "coreimpl" was not accessible to user programs at all. While some similarity issues can be improved, the implementations will never match.) The user programs should program to the interfaces of "core" library not to "coreimpl". If there are "coreimpl" interfaces that seems to belong to core library, then we should file individual issues. |
Whoa. If that's true I don't see why coreimpl can be imported by user code at all. Maybe the issue then is why so much useful, not implementation specific stuff is in coreimpl instead of corelib, like concrete collection implementations (hash map, splay tree, etc): http://dart.googlecode.com/svn/branches/bleeding_edge/dart/corelib/src/implementation/ Or useful things under {runtime|frog|compiler}/lib like: Collections, ByteBuffer, ImmutableArray/Map (what if I want to create one from values that aren't compile time const?) the actual List implementations, etc... |
This bug doesn't apply anymore. Added AssumedStale label. |
Agreed. This does not apply anymore. There's still an open issue about extending List's default implementation, which is tracked in this bug: |
Revisions updated by `dart tools/rev_sdk_deps.dart`. rev_sdk_deps is changed to default to `main` if no branch is found, as `origin` doesn't seem to work for impacted repos (e.g. csslib). dartdoc (https://github.com/dart-lang/dartdoc/compare/1d94484..950898f): 950898f5 Tue May 30 11:18:38 2023 -0700 Janice Collins Reintroduce remote linking file type assumption (#3425) ef552992 Tue May 30 09:49:16 2023 -0700 Sam Rawlins Refactor search ranking (#3424) http (https://github.com/dart-lang/http/compare/8a4a4a6..18a43a2): 18a43a2 Tue May 30 09:44:24 2023 -0700 Brian Quinlan Fix the failing cupertino_http tests (#949) lints (https://github.com/dart-lang/lints/compare/4236c43..edc28ed): edc28ed Tue May 30 11:56:29 2023 -0500 Parker Lougheed Add topics to the pubspec file (#122) logging (https://github.com/dart-lang/logging/compare/7ba155a..f2fe2ac): f2fe2ac Tue May 23 15:01:13 2023 -0700 Jacob MacDonald prep for release (#140) ce41605 Mon May 22 10:14:28 2023 -0700 Devon Carew blast_repo fixes (#142) tools (https://github.com/dart-lang/tools/compare/b90a7e8..d723a55): d723a55 Tue May 30 11:02:27 2023 -0700 Devon Carew Update pull_request_label.yml (#107) webdev (https://github.com/dart-lang/webdev/compare/4b69f1d..d442fa8): d442fa89 Tue May 30 14:36:53 2023 -0400 Anna Gringauze Check for new events more often in batched stream. (#2123) Change-Id: I9e8905363ee51462529341bfba268504336d90e3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306314 Auto-Submit: Janice Collins <[email protected]> Reviewed-by: Devon Carew <[email protected]> Commit-Queue: Devon Carew <[email protected]> Commit-Queue: Janice Collins <[email protected]>
coreimpl is largely provided by the implementations (dartc, vm, frog), there's no check that they are all exposing the same coreimpl interface. And right now it doesn't look very consistent between the three. Just to take List as an example: VM has ObjectArray/GrowableObject array, DartC has ListImplementation, and Frog has ListFactory (expect a fix soon to call it ListImplementation).
One idea here: define all the interfaces in coreimpl, and implementation specific classes should be marked with a leading underscore so users don't depend on them.
The text was updated successfully, but these errors were encountered: