Skip to content

Should convert(::Type{<:InfiniteCardinal}, x) = convert(Integer, x)? #43

@LilithHafner

Description

@LilithHafner

I think that adding convert(::Type{<:InfiniteCardinal}, x) = convert(Integer, x) would allow Base.OneTo(ℵ₀) to replace OneToInf(), and also allow us to delete all zero/one/oneunit specializations, and possibly more.

This is dubious because convert(T, x) has a docstring that says Convert x to a value of type T, but InfiniteCardinal is an Integer, so this is close.

Originally posted by @LilithHafner in #42 (comment)

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