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

Remove references to Array. eg ImmutableArray and GrowableObjectArray #1028

Closed
sethladd opened this issue Jan 3, 2012 · 4 comments
Closed
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant

Comments

@sethladd
Copy link
Contributor

sethladd commented Jan 3, 2012

The Dart Language Spec doesn't mention the word "Array", yet we have at least two occasions where the word is used: ImmutableArray and GrowableObjectArray. These words are visible to the developer via various means, and lead to confusion (what is difference between Array and List?)

Suggestion: remove all references to Array which might become visible, replace with List.

@dgrove
Copy link
Contributor

dgrove commented Jan 9, 2012

Added Area-Library label.

@dgrove
Copy link
Contributor

dgrove commented Jan 9, 2012

Added Triaged label.

@DartBot
Copy link

DartBot commented Jan 18, 2012

This comment was originally written by @butlermatt


An additional location is in runtime errors for the VM.
Take this simple code:
main() {
  var list = new List(3);
  list.add(4);
}

Generates the error:
..
"UnsupportedOperationException: Cannot add to a non-extendable array"
...

Similar occurs with the removeRange list function.

Dartboard displays the correct 'list' terminology.

@sethladd
Copy link
Contributor Author

I think we can close this.


Added AssumedStale label.

@sethladd sethladd added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant labels Mar 19, 2013
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-obsolete Closed as the reported issue is no longer relevant
Projects
None yet
Development

No branches or pull requests

3 participants