If the array syntax was:
[1, 2, 3]
And the list syntax was:
[|1, 2, 3|]
... I wonder if that would aide in onboarding JS devs? It seems like arrays will be much more used anyway.
IME, lists are far more useful in OCaml, because you can't change the size of arrays.
Immutability is a really important concept in reason. Lists are immtable which is why they are chosen over arrays.
Array is only used more when compiling to JS, list is more useful in OCaml.
Most helpful comment
IME, lists are far more useful in OCaml, because you can't change the size of arrays.