Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

User wants to have array literal [] to construct arrays #31

Open
nidin opened this issue Mar 31, 2017 · 2 comments
Open

User wants to have array literal [] to construct arrays #31

nidin opened this issue Mar 31, 2017 · 2 comments

Comments

@nidin
Copy link
Contributor

nidin commented Mar 31, 2017

What?
User wants to have array literal [] to construct arrays

How?

let triangles = [
    new Triangle(),
    new Triangle(),
    new Triangle()
];
@nidin nidin added this to the v1.0.0 milestone Mar 31, 2017
@nidin nidin self-assigned this Mar 31, 2017
@winksaville
Copy link
Contributor

Nice to have but v2 as you can always do it outside of initialization.

let trinagles = [3];
triangles[0] = new Triangle();
triangles[1] = new Triangle();
triangles[2] = new Triangle();

@nidin nidin added v2.0.0 and removed v1.0.0 labels Apr 27, 2017
@nidin
Copy link
Contributor Author

nidin commented Apr 27, 2017

Moved to v2.0.0
Plan is to reduce calls and do a bulk allocation for array literals.

@nidin nidin removed this from the v1.0.0 milestone May 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants