-
Notifications
You must be signed in to change notification settings - Fork 25
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
Argument limited to Functions #224
Comments
Easy work around is to wrap whatever you want to AD in a anon function. I am trying to remember if there is a reason we don't just allow nonfunction subtypes. |
The purpose of this restriction is not apparent to me either. Yes, the workaround is trivial, but slightly tedious for unit tests etc. Would you consider accepting a PR removing the restriction it if it can be made to work? |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FiniteDifferences does not support objects that can be called without being a subtype of
Function
. It's a bit weird since Julia does not support multiple inheritances. Can the restriction<: Function
be removed? If not it would be good to discuss the issue/workaround in the README.The text was updated successfully, but these errors were encountered: