Open
Description
Here's a small example.
julia> Base.OneTo <: AbstractUnitRange
true
julia> Base.UnitRange <: AbstractUnitRange
true
julia> StaticArrays.SOneTo <: AbstractUnitRange
true
julia> StaticArrays.SUnitRange <: AbstractUnitRange
false
Related comment: #855 (comment)
I think we have the following choices.
- Make abstract subtype
StaticUnitRange
for static range and make hierarchySUnitRange <: StaticUnitRange <: AbstractUnitRange
andSOneTo <: StaticUnitRange <: AbstractUnitRange
. - Move
SOneTo <: AbstractUnitRange
toSOneTo <: StaticArray
.
I prefer the first. Are there any thoughts on this?
Metadata
Metadata
Assignees
Labels
No labels