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

Built-in namespacing #314

Closed
tsandall opened this issue Apr 26, 2017 · 0 comments
Closed

Built-in namespacing #314

tsandall opened this issue Apr 26, 2017 · 0 comments

Comments

@tsandall
Copy link
Member

tsandall commented Apr 26, 2017

Eventually we'll end up with custom built-ins or upstream built-ins to work with data from from specific, well-known projects. Either way, we should have a way of namespacing them for clarity and to avoid conflicts.

Today, built-ins are all of the form <name: var>(<op1: term>, <op2: term>, ...). We could namespace built-ins as follows: <name: ref>(<op1: term>, <op2: term>, ...). E.g., my.special.builtin.func("foo").

tsandall added a commit to tsandall/opa that referenced this issue May 12, 2017
This change updates the grammar so that built-in names can contain
periods ("."). This allows built-in names to be namespaced which will be
important down the road once people start adding custom built-ins.

Fixes open-policy-agent#314
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

1 participant