TurboScript icon indicating copy to clipboard operation
TurboScript copied to clipboard

User wants to have array literal [] to construct arrays

Open nidin opened this issue 7 years ago • 2 comments

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

How?

let triangles = [
    new Triangle(),
    new Triangle(),
    new Triangle()
];

nidin avatar Mar 31 '17 04:03 nidin

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();

winksaville avatar Apr 12 '17 14:04 winksaville

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

nidin avatar Apr 27 '17 15:04 nidin