You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This reflects the work that is required for an initial release of Mun with array support (arrays v0.1). This will allow the construction and use of arrays but will still miss a lot of essential features to make working with them easier.
Out of scope
Things that are out of scope for this initial v0.1 version:
Querying the length of an array
Resizing an array
Appending to an array
Required work
Array types
Mun must have support for array types so we can pass them around in code.
Syntax of array types must be parsable
The vscode grammar must be updated to support these types
Code generation to handle array types
ABI support for array types
fn identity(arr: [int]) -> [int] { arr }
Array construction
Enable the construction of arrays from mun code.
let a = [1,2,3,4]
Syntax support for array literals
HIR support for array literals including type inferencing
Runtime support for allocation of array literals
Support arrays in the garbage collector
Support hot reloading of arrays.
Use arrays through the runtime.
Create arrays through the runtime.
Open questions
What and how do we support the hot-reloading of arrays? Which operations are (not) allowed?
Array indexing support.
let a = arr[i]
arr[i] = 3.0
Syntax support for array indexing
HIR support for array indexing including type inferencing
Language server support for array indexing (proper completion in brackets)
Code generation for array indexing
The text was updated successfully, but these errors were encountered:
I updated this issue to reflect all the work that I think is required for the first version. I dubbed this arrays v0.1 because it's still missing a lot of features. However, with the work specified above it should become possible to at least use them!
This is a tracking issue regarding the implementation of dynamically sized arrays.
This reflects the work that is required for an initial release of Mun with array support (
arrays v0.1
). This will allow the construction and use of arrays but will still miss a lot of essential features to make working with them easier.Out of scope
Things that are out of scope for this initial v0.1 version:
Required work
Array types
Mun must have support for array types so we can pass them around in code.
Array construction
Enable the construction of arrays from mun code.
Open questions
Array indexing support.
The text was updated successfully, but these errors were encountered: