-
Notifications
You must be signed in to change notification settings - Fork 370
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
allow describe
function to take arbitrary functions
#1436
Comments
Yes, but probably better just pass the function and call |
Well, I was wondering about that. I find this aspect of |
I've thought about this too. The issue is that the function has to be pretty detailed, in that it shouldn't throw an error for any of the types for the functions. Most datasets at the least have a non-numeric ID. Adding this feature puts a lot of trust on the user. |
It's already catching errors and returning The downside of this is that it would make it difficult for the user to debug their own code. |
Oh, yeah I hadn't thought about that. we would just have to separate the And this is useful because our function can take care of the
which is a bit ugly. |
I'm a bit confused about type stability in this case. If we have |
It shouldn't make a significant difference given that most of the time is indeed spent in the functions themselves. |
I'm absolutely loving the new
describe
function, but I'm wondering if it should be allowed to take arbitrary functions as arguments.For example,
Any thoughts on this? I can do the PR if we decide on what for this should take.
The text was updated successfully, but these errors were encountered: