-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Quoted var assignment #3878
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
Comments
@nicolasstucki Maybe with some guidance I could have a look into that. |
We should first merge #3883 or build on top of it. I am currently not sure how it should work exactly. I would have to experiment with it to be able to give some guidance. |
An alternavie library implementation is possible
But there is a bug when splicing |
Fix will be possible after changes in #4081 |
Fixed by #4081 |
To be able to use
var
we need to extendExpr[T]
with aVarExpr[T]
that allows the expression to be used in the left-hand side of an expression.Currently in
'{ ~x = ~x - 1 }
, the left hand side cannot be spliced in. TheVarExpr[T]
would allow x to be spliced on the left hand side of the assignment.The text was updated successfully, but these errors were encountered: