Proposal: first-class arrays
This is a proposal for first-class array variables. I am not sure what the user-facing syntax should be, but here are my current thoughts:
- Arrays should not be just
;
-delimited lists. Arrays should be mutable and support O(1) index-based get and set operations. - Implicitly converting an array to a string should only succeed if the resulting string would, were it to be interpreted as a list, expand to the same elements as the original array. Otherwise it is a fatal error.
- Arrays can be passed to functions, either as arrays or as one argument per array.