Skip to content
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

Negated matching #6

Open
mbravenboer opened this issue Sep 4, 2018 · 0 comments
Open

Negated matching #6

mbravenboer opened this issue Sep 4, 2018 · 0 comments
Assignees

Comments

@mbravenboer
Copy link
Contributor

It would be useful to support negated matching, probably using !

Variable bindings get a little more tricky here. Obviously variables in a negated context should not bind, but this can be arbitrarily nested (like !(p(x) && q(x)), so we need to track whether we're in a positive or negative context. Double negation switches back to positive.

Judging from a quick code review this should be fairly easy to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant