Declare that an AbstractDimStack
is an AbstractArray
with namedtuple eltype?
#870
Labels
enhancement
New feature or request
After #811 merged, any
DimStack
now behaves a lot like anAbstractArray
that iteratesNamedTuple
s. Should we declare it as such?It could even be an
AbstractBasicDimArray
, but that would require some changes as aAbstractDimStack
does not have its dimension in its type, currently.It would allow us to remove a whole list of array-like methods, and make additional things work, e.g.:
This now fails because
ndims
is not implemented forDimStack
(an oversight, I assume), but if I just addabstract type AbstractDimStack{K,T,N,L} <: AbstractArray{T,N} end
then it just works.
The text was updated successfully, but these errors were encountered: