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

Need way to tell if a List is read-only #8113

Closed
jmesserly opened this issue Jan 24, 2013 · 3 comments
Closed

Need way to tell if a List is read-only #8113

jmesserly opened this issue Jan 24, 2013 · 3 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report library-core type-enhancement A request for a change that isn't a bug

Comments

@jmesserly
Copy link

This is sort of related to http://dartbug.com/7982

If I get a List instance, it would be nice to have a test for if it's read-only or has a fixed length. Maybe a boolean property (analogous to the existing "isEmpty").

@floitschG
Copy link
Contributor

We would like to avoid these flags unless there is a really good use-case for them.
In general you should say what you want, and expect that the right List has been given to you. If your method behaves differently depending on the container it should potentially receive an extra argument, so it knows what it is supposed to do.
But I don't know your code, so maybe I'm missing something.

@lrhn
Copy link
Member

lrhn commented Aug 16, 2013

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

@floitschG
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #13926.

@jmesserly jmesserly added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-core closed-duplicate Closed in favor of an existing report labels Nov 5, 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-duplicate Closed in favor of an existing report library-core type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants