Shape checking
#359
-
Any plans for compile time array shape checking? There are several projects working with restricted dependent types to allow for something like this in a tractable manner. Does the mojo team intend on something similar? |
Beta Was this translation helpful? Give feedback.
Answered by
lattner
Jun 11, 2023
Replies: 1 comment 1 reply
-
I don't think it will be a feature of the default array type (because it needs to be dynamically resizable), but you can already express shape algebra in types using the parameter system, e.g. you can express types like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AriMKatz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think it will be a feature of the default array type (because it needs to be dynamically resizable), but you can already express shape algebra in types using the parameter system, e.g. you can express types like this: