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

Distinguish between closures and functions-in-general #18

Closed
egnha opened this issue Mar 30, 2017 · 0 comments
Closed

Distinguish between closures and functions-in-general #18

egnha opened this issue Mar 30, 2017 · 0 comments
Assignees

Comments

@egnha
Copy link
Owner

egnha commented Mar 30, 2017

To match naive expectations, vld_function should correspond to the predicate base::is.function rather than purrr::is_function. A new checker vld_closure should take the place of vld_function. Thus:

vld_function <- localize("Not function" ~ is.function)
vld_closure  <- localize("Not closure" ~ purrr::is_function)
@egnha egnha self-assigned this Mar 31, 2017
@egnha egnha closed this as completed Apr 5, 2017
egnha added a commit that referenced this issue Aug 10, 2017
In purrr 0.2.3, is_function() returns TRUE for primitive functions.
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