You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently been experimenting with the FastAnonymous macro in v0.4. I find it useful to create custom functions with the constants baked in and then stuff these functions into a dictionary.
When one defines the receiving dictionary to be of
Dict{Int64,Function}()
and then tries to add a duck type function from FastAnonymous one gets the expected conversion error.
Clearly the work around is to define:
Dict{Int64,Any}()
and let everything just work out.
The experience does make me think that it might be desirable to have an AbstractFunction supertype which is referenced by FastAnonymous.
I'd like to hear other people's thoughts.
The text was updated successfully, but these errors were encountered:
I've recently been experimenting with the FastAnonymous macro in v0.4. I find it useful to create custom functions with the constants baked in and then stuff these functions into a dictionary.
When one defines the receiving dictionary to be of
and then tries to add a duck type function from FastAnonymous one gets the expected conversion error.
Clearly the work around is to define:
and let everything just work out.
The experience does make me think that it might be desirable to have an AbstractFunction supertype which is referenced by FastAnonymous.
I'd like to hear other people's thoughts.
The text was updated successfully, but these errors were encountered: