Generalised Ref forms #307
Replies: 3 comments
-
I think this generalization — allowing multiple dimensions for a ref —could be made to work. When static information is available, the information could be used to make there a suitable number of dimensions are used (i.e., the right number of comma-separated subexpressions within In that case that static information is not available, though, things that are currently rejected statically would turn into dynamic errors. For example, So, there's a tradeoff between supporting the generalization and providing better and earlier errors for the common 1-dimensional case. If multi-dimensionsal cases will be rare, then it might be better to leave that to another path, such as a I am not immediately sure of the right choice here. (All of this is about the default |
Beta Was this translation helpful? Give feedback.
-
I'm not all that into this particular generalization because it doesn't buy much over just writing |
Beta Was this translation helpful? Give feedback.
-
Another idea: Rhombus could provide a variant of |
Beta Was this translation helpful? Give feedback.
-
It would be nice if the following worked:
Beta Was this translation helpful? Give feedback.
All reactions