-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improve argument restrictions #53
Conversation
Remove agent vars from being selected when agent is observer
Doing this in a PR as it's slightly more radical. |
This PR now includes code so that things respect |
That is, includes fix for #6 |
Improve argument restrictions
] | ||
table:to-list tasks | ||
] | ||
if the-type = "value"[ | ||
report filter [ | ||
table:get last ? "type" = "value" | ||
table:get last ? "type" = "value" and | ||
table:get last ? "visible" |
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.
There's a lot of shared logic in these cases that could probably be pulled out into a reporter. Something like:
to-report visible-interaction-filter [t type context other-filter]
task [
table:get last ? "type" = type and
table:get last ? "visible" and
run-result other-filter (table-get last ?)
]
end
Looks fine to me. I left a few comments, but they are sort of nitpicky and I think that if this works, it's good to go. |
Awesome, thanks @mrerrormessage. I'll refactor a bit, but wait till after today :) |
This refines which arguments show up when. There are still invalid choices, but fewer. Also, fixes #52.