Open s5bug opened 3 years ago
If I have time I might try and figure out a solution to this. Ideally, the syntax to create an array "makes sense" (i.e. no function calls the user has to remember, and something like [|
and |]
instead) and the array is literally just a Lua array value.
Is the former possible with existing features?
Is the latter possible by just changing array.ml
in prelude to not store length?
The C++ side expects
{ names = { "bob", "joe" } }
. With a linked-list, I get incorrect results:and with
array
,The Lua code is too long to include, but
names[1]
evaluates to a table (with alength
andbacking
field) instead of"bob"
.