-
Notifications
You must be signed in to change notification settings - Fork 50
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
Proposal: better negation syntax #12
Comments
This seems reasonable to me. and its more inline with the direction I am thinking of going with the API rewrite. The only possible concern I have is making sure the negative is visible. however, I suspect its ok. |
Alright. I will implement this additional rewrite then. |
I am no longer sure this is a good idea. I mean, overall, it does seem to be interesting, but it will obscure rule's actual arity |
I guess what confuses me in the existing syntax is this What we can do (at least) is to get rid of the list, and if somebody wants to match multiple not-rules, they should do when Also, since we're controlling the parse transformation in question, may be we can make this look this way: |
I am ok with that I suspect. |
good, will try playing with this whenever I'll get around that. |
So, right now the syntax is really awkwardly hard:
I was just thinking, and basing on my experience writing Exportie (https://github.com/spawngrid/exportie) I am pretty sure we can pack this above example to:
I am not sure I can use
not
there, but if I can't, we can't settle with another keyword, such asnegative
orunless
If you agree with this proposal I will implement this and send a pull request. Please let me know.
The text was updated successfully, but these errors were encountered: