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

Context lookup security #1

Open
jbenet opened this issue May 16, 2015 · 2 comments
Open

Context lookup security #1

jbenet opened this issue May 16, 2015 · 2 comments

Comments

@jbenet
Copy link

jbenet commented May 16, 2015

Would be nice if variables defaulted to unexposed (unreadable from higher contexts) and could be optionally exposed

@BrendanBenshoof
Copy link
Owner

Honestly the higher-context lookups are a philosophical remnant of another stack-based language I was working on. It has some utility but is not really needed. A "globals" memory could be useful for configuration, but im not sure that fits the use case.

@jbenet
Copy link
Author

jbenet commented May 16, 2015

i think reaching into higher scopes works well in practice (js). it should just be an explicit permission. though this does grant the permission to any lower scope regardless of intermediate scopes.

another alternative, which is perhaps the right thing to do is to bind "parameters" before a call and only those variables are accessible.

PARAM    key, value   stores value at key for next child call only.

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

2 participants