When displaying functors the Workspace panel doesn't reflect the type of the functor or the fields of the structure. Running the below snippet, the example will display in the Workspace as "example Any" and no drop down menu is present which can be used to example the fields "x" or "y" rather a definition of any is given. The correct type is Functor. Functor's a fairly useful for efficiently adding parameters to functions that previously lacked them (e.g. Jacobians with ForwardDiff.jl) or preallocating storage. So if would be nice if Juno's display supported them.
struct Functor <: Function
x::Int
y::Int
end
example = Functor(1,2)
When displaying functors the Workspace panel doesn't reflect the type of the functor or the fields of the structure. Running the below snippet, the example will display in the Workspace as "example Any" and no drop down menu is present which can be used to example the fields "x" or "y" rather a definition of any is given. The correct type is
Functor
. Functor's a fairly useful for efficiently adding parameters to functions that previously lacked them (e.g. Jacobians with ForwardDiff.jl) or preallocating storage. So if would be nice if Juno's display supported them.Details
Steps to reproduce