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

rigged functions should have a class #23

Open
moodymudskipper opened this issue May 4, 2021 · 0 comments
Open

rigged functions should have a class #23

moodymudskipper opened this issue May 4, 2021 · 0 comments
Milestone

Comments

@moodymudskipper
Copy link
Owner

c("boomer_rigged", "function")

So we can recognized them easily.

  • original environment is set as an attribute
  • printing method will show it's rigged, and mention original environment/namespace
  • is_rigged function checks if we inherit from "boomer_rigged"

rig_in_namespace will use it to make sure all function environments are synced, it will also make it easy to unrig, just set back the environment to initial value.

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