ThakeeNathees / pocketlang

A lightweight, fast embeddable scripting language.
https://thakeenathees.github.io/pocketlang/
MIT License
1.52k stars 80 forks source link

List(n) constructor returns empty list in length of n, instead of [n]… (BREAKING) #259

Closed khchen closed 2 years ago

khchen commented 2 years ago

List constructor do the same thing as list literal for now. However, there is no way to create an preallocated list. So this breaking change let List(n) to do it.

Is this a good idea, or not?

khchen commented 2 years ago

close temporary