Making getproperty
, getindex
and iterate
more type stable for Tangent
s
#606
Labels
Structural Tangent
Related to the `Tangent` type for structured (composite) values
Constprop is rarely able to pierce the function barrier and get through to the underlying type. This would especially help when the backing is a tuple or NamedTuple.
I think the main question is how to do this.
@inline
as seen in https://github.com/JuliaLang/julia/blob/master/base/tuple.jl is one option.Base.@constprop :aggressive
is another that Diffractor currently employs.The text was updated successfully, but these errors were encountered: