-
Notifications
You must be signed in to change notification settings - Fork 24
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
Supporting extensions? #103
Comments
It looks like these are just CEL functions that are namespaced and not available in the interpreter by default. The biggest missing piece in the library is the ability to namespace functions. You can already write your own functions and load them into the interpreter so I'm guessing your questions or more about (1) namespacing, and (2) whether we can provide these extensions out of the box. I don't have any reservations about supporting this, though I do have several other features and PR reviews that are spec-compliance-related that I think are higher priority than this. That being said, if you wanted to take a stab at implementing, I'd be more than happy to review. |
Yeah :) I was thinking of providing this straight to this crate... Something along side how its done in Go env, err := cel.NewEnv(Strings()) Tho, unsure about the namespacing? |
Not so all of them, got it! |
I haven't dropped the ball on this... I ended up implementing this straight on our usage of this only because I didn't see how to best make this available from an API perspective in a way that's seamless enough quite yet. But in case it can be of any help to anyone, |
Wonder how, if at all, this library would support extensions in ways the golang implementation does? We could have the need for the
Strings()
, how would that best be supported here, if that's interesting?The text was updated successfully, but these errors were encountered: