Skip to content
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

new BuiltList<A>(builtListOfB) should be efficient #66

Closed
dskloetg opened this issue Jun 21, 2016 · 1 comment
Closed

new BuiltList<A>(builtListOfB) should be efficient #66

dskloetg opened this issue Jun 21, 2016 · 1 comment
Assignees

Comments

@dskloetg
Copy link

dskloetg commented Jun 21, 2016

B extends A.
If we have a BuiltList<B> but we need it as a BuiltList<A>, we currently need to create a copy of the list.
new BuiltList<A>() should be able to reuse the underlying list and without checking the type of each element.

@davidmorgan
Copy link
Contributor

Now that we get rid of explicit type checks and just rely on the checks of the underlying collection, I think this is unfortunately infeasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants