TurboScript
TurboScript copied to clipboard
User wants to have array literal [] to construct arrays
What? User wants to have array literal [] to construct arrays
How?
let triangles = [
new Triangle(),
new Triangle(),
new Triangle()
];
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();
Moved to v2.0.0 Plan is to reduce calls and do a bulk allocation for array literals.