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

Provide a base class for wrapping lists #8778

Closed
blois opened this issue Feb 25, 2013 · 3 comments
Closed

Provide a base class for wrapping lists #8778

blois opened this issue Feb 25, 2013 · 3 comments
Labels
area-library closed-obsolete Closed as the reported issue is no longer relevant core-n P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@blois
Copy link
Contributor

blois commented Feb 25, 2013

It's quite common to need to wrap a List object with another list to either intercept certain calls or to coerce the element types. It would be nice if there was a standard base class for allowing this.

I recently had to create one in dart:html to expose a List<Element> as List<TableRowElement> without copying the list, but it seems to be more generally useful.

@rakudrama
Copy link
Member

Ditto Map and Set

@lrhn
Copy link
Member

lrhn commented Aug 27, 2013

Removed Type-Defect label.
Added Type-Enhancement label.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@floitschG floitschG added core-n and removed core-m labels Sep 11, 2017
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 21, 2018
@lrhn
Copy link
Member

lrhn commented Jun 21, 2018

The classes are available in package:collection. We do not plan to duplicate them in the platform SDK. That is obviously annoying for platform libraries like dart:html which cannot use packages, but since dart:html isn't shipped on all platforms, it's better to have the duplication only there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-library closed-obsolete Closed as the reported issue is no longer relevant core-n P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants