Skip to content

Collection should have a default class (implementation) #1304

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

Closed
DartBot opened this issue Jan 23, 2012 · 3 comments
Closed

Collection should have a default class (implementation) #1304

DartBot opened this issue Jan 23, 2012 · 3 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jan 23, 2012

This issue was originally filed by @seaneagan


Collection represents a "multi set" or "bag", for which implementations do exist, thus it should have a default implementation just like almost every other core library interface. It should also have a copy constructor:

Collection.from(Iterable<E> other);

A no arg constructor does not make sense, so long as Collection does not contain any mutators. Java's Collection interface has optional mutators.

@dgrove
Copy link
Contributor

dgrove commented Jan 25, 2012

Removed Type-Defect label.
Added Type-Enhancement, Area-Library, Triaged labels.

@lrhn
Copy link
Member

lrhn commented Sep 2, 2013

The Collection class no longer exists.

An unordered multiset is an interesting idea, but not so often needed that we plan to add it to the core library.


Added NotPlanned label.

@lrhn
Copy link
Member

lrhn commented Sep 2, 2013

The Collection class no longer exists.

An unordered multiset is an interesting idea, but not so often needed that we plan to add it to the core library.

@DartBot DartBot added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-not-planned Closed as we don't intend to take action on the reported issue labels Sep 2, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants