-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Ability to check symbol namespaces in :allow
and :deny
#934
Comments
3 tasks
borkdude
added a commit
that referenced
this issue
Oct 3, 2024
Hi! I think this PR fixes it more properly: #936 |
Merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I'm trying to create a sandbox environment where only specific vars are exposed in the
user
namespace. I want to excludeclojure.core
vars through the use of:allow
. However I have some macros that need access toclojure.core
. My approach is to alias someclojure.core
vars in animpl
namespace. For example, I don't want to exposemapv
but I need in for my macro implementations.Describe the solution you'd like
The ability to namespace qualify symbols in
:allow
and:deny
:This results in an exception:
impl/mapv is not allowed!
. However, this example works if I leave out:allow
.Describe alternatives you've considered
Ideally, macros could use
clojure.core
without exposing it to the programs that get eval'd.Additional context
None
The text was updated successfully, but these errors were encountered: