-
Notifications
You must be signed in to change notification settings - Fork 22
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
Memoize cannot be used on functions defined on instances of a struct #78
Comments
With a pull request! This shouldn't be too difficult, so if you're up for macros, I would encourage you to try. Otherwise... On the user side, you could do this: (s::Some)(y,z) = call_some(s,y,z) then memoize call_some. |
I am not so comfortable with macros, but I can try it out. |
I thought of this but thought it would be nice for it to be supported in some other way :) |
Fyi https://github.com/marius311/Memoization.jl/ has this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great package! I have one slight problem. It is currently impossible to
@memoize
functions that do not have conventional names but are instead defined on some types. For example:Can you think of a way to solve this?
The text was updated successfully, but these errors were encountered: