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

Align search path lookup to standard semantics #5

Closed
brodieG opened this issue Sep 9, 2017 · 0 comments
Closed

Align search path lookup to standard semantics #5

brodieG opened this issue Sep 9, 2017 · 0 comments

Comments

@brodieG
Copy link
Owner

@brodieG brodieG commented Sep 9, 2017

Don't start at top level with each substitution. So, if we find a symbol at certain level in the search path, we should only look for symbols further down the search path.

Not 100% sure this is the right thing to do, but I think this is necessary to conform to standard R semantics. That said, this is somewhat debatable since there is no real analog with normal expressions. Since this will be a real pain to implement (and will likely be slow) would should really make sure it is needed.

Started to think about the normal eval comparable:

env1 <- new.env()
env2 <- new.env(parent=env1)

env2$x <- 2

But then stopped when I realized that normal evaluation only substitutes a symbol once so what should happen on recursive evaluation is not really defined.

@brodieG brodieG added this to the 0.1.0 milestone Sep 9, 2017
@brodieG brodieG closed this in 7b9bc27 Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.