-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should VariantExpression allow expressions as keys? #188
Comments
Closed
@Pike pointed out that we can't allow all inline expressions as keys because of the ambiguity of the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a term defined as follows:
-thing = { *[one] Thing [other] Things }
Should we allow this?
own = You have { $count -> *[one] {-thing[$count]} [other] {-thing[$count]} }
Right now we require the proper key to be specified in the
VariantExpression
, like so:own = You have { $count -> *[one] {-thing[one]} [other] {-thing[other]} }
Note that because we allow all valid variant keys, this is currently also legal:
own = You have { $count -> *[one] {-thing[1]} [other] {-thing[other]} }
The text was updated successfully, but these errors were encountered: