Skip to content

InfStepRange should not be OrdinalRange #207

@putianyi889

Description

@putianyi889

By definition, OrdinalRange is only for discrete type and the step must be multiples of one.

For reference,

julia> typeof(1.0:5.0)
StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}

julia> typeof(1.0:5.0) |> supertype
AbstractRange{Float64}

julia> typeof(1:5) |> supertype |> supertype
OrdinalRange{Int64, Int64}

julia> typeof(1:5) |> supertype |> supertype |> supertype
AbstractRange{Int64}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions