Skip to content

Should we define our own Functions or use ones from Base? #12

@zsunberg

Description

@zsunberg

Currently, we use Base.eltype and Base.clamp in our interface. However this can be problematic since people tend to interpret these differently. For instance, eltype(1..2) returns Int. (and hence the broken test at

@test_broken eltype(tp) == Tuple{Float64, Float64}
)

Should we introduce CommonRLSpaces.element_type and CommonRLInterface.clamp to deal with these?

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