Limitations on parameters for structs/functions. #243
Replies: 1 comment
-
I'm not sure what is going on here either - this works fine on the command line, and anything complaining about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't understand the limitations of parameters for structs/functions. For example, if I wanted to have a
ShapedArray
type, similar to Julia'sStaticArrays
, I would want to have arank
parameter giving the shape of the dimensions tuple and the shape tuple as parameters. From what I can tell, you get something like this:However, this doesn't seem to play nicely with Mojo, as I get the following error:
Whereas if I remove that dependency, things seem to work fine:
doesn't run into any issues.
Beta Was this translation helpful? Give feedback.
All reactions