-
Notifications
You must be signed in to change notification settings - Fork 101
feat(operators): Add AND, OR, and NOT bitwise operators #1504
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Antoine Sauzeau <[email protected]>
Signed-off-by: Antoine Sauzeau <[email protected]>
encode_base64("please encode me") | ||
encode_base64(encode_gzip("please encode me")) | ||
encode_base64(encode_gzip("please encode me")) | ||
15 & 20 |
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.
Nice addition. Did you have a chance to run the fuzzer as well?
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.
Yes I tested it for about ten minutes and didn't experience any crashes. I'll try to run it longer.
Did you mean you chose I don't see an easy solution around this. Perhaps we could replace |
Okay indeed, it seems like a good idea to rename the merge operator using So I'm I supposed to follow the cycle of this document and for now just “depreciate” the merge operator
Good idea. |
Yes, that sounds like a reasonable plan. This reminds me we need a similar policy that lives in the VRL repo. BTW, I mentioned |
Initially I had in mind |
Hmm, on one hand We could also have |
Just randomly reviewing the issue list here... Might I suggest It also occurs to me that the current merge-assign operator, |
Summary
Add AND (&), OR (^) and NOT (~) bitwise operators. See #1386.
'|' token was already used for the merge operator so I chose another token for the not operator, but it's not ideal since it's usually used for XOR operator.
Change Type
Is this a breaking change?
How did you test this PR?
Tests are included.
Does this PR include user facing changes?
our guidelines.
Checklist
run
dd-rust-license-tool write
and commit the changes. More details here.