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

Support bitwise operators #286

Open
thomdixon opened this issue May 24, 2023 · 3 comments
Open

Support bitwise operators #286

thomdixon opened this issue May 24, 2023 · 3 comments

Comments

@thomdixon
Copy link

In addition to standard arithmetic operators, it would be nice if CEL supported bitwise operators on integers. This would make calculating e.g., permission systems based on bits/flags (a la Unix), subnet masks, etc much easier.

@TristonianJones
Copy link
Collaborator

@thomdixon This is something we'll get to as a canonical extension. Hopefully, sooner rather than later.

Thanks for filing!

@parsnips
Copy link

parsnips commented May 21, 2024

@TristonianJones is there something canonical for this yet? I see some stuff in the cel-go math extensions for bitshifting.

@TristonianJones
Copy link
Collaborator

TristonianJones commented May 21, 2024

@parsnips Ah, yes. I wouldn't say canonical because we haven't implemented it across all stacks yet, but what you see in cel-go is what will be coming to cel-cpp and eventually cel-java.

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

No branches or pull requests

4 participants
@parsnips @thomdixon @TristonianJones and others