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

Consistency between Passing Quoted Objects And Putting them In #18

Closed
brodieG opened this issue Apr 20, 2017 · 1 comment
Closed

Consistency between Passing Quoted Objects And Putting them In #18

brodieG opened this issue Apr 20, 2017 · 1 comment

Comments

@brodieG
Copy link
Owner

brodieG commented Apr 20, 2017

> validate(quote(quote(a + b)), quote(x2 + x3))
Error in validate(quote(quote(a + b)), quote(x2 + x3)) : 
  `quote(x2 + x3)[[1]]` should be a call to `quote` (is a call to `+`)

unitizer> validate(quote(a + b), quote(x2 + x3))
[1] TRUE

> x <- quote(quote(a + b))
> validate(x, quote(x2 + x3))
[1] TRUE
@brodieG
Copy link
Owner Author

brodieG commented Apr 21, 2017

This is actually fine. The rules are:

  • Substitute input
  • Any symbols in input that point to language expand to that language

So the above is consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant