-
Notifications
You must be signed in to change notification settings - Fork 89
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
feat: call built-ins as predicate #557
Conversation
We can probably ditch that functionality if it's making the merger harder. I don't consider it critical.
It would probably be good to have a simple one just as a test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
20 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Good news: I was able to move the inspection of the variable to the log compiler instead, so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good! Ideally we'd remove the special log
from the grammar entirely but this is good enough.
I also tried removing
Predicate::Log
in favor ofPredicate::CallBuiltIn
, but this turned out to be more complex, because the log implementation wants to inspect the variable being passed instead of only its value, so I left that as is for now.Unfortunately, this leaves me without a good test case in this repo. Would you like me to create one?
Greptile Summary
This is an auto-generated summary
Hi! Looks like you've reached your API usage limit. You can increase it from your account settings page here: app.greptile.com/settings/usage