Skip to content

Infinite <: Real? #11

Description

@cjdoris

Currently Infinite is a subtype of Real. But now we have InfExtendedTime. Should we have Infinite <: Any instead? Options:

  • Leave Infinite <: Real, but also allow Infinite to promote to TimeType.
  • Change Infinite <: Any. This means you can't do arithmetic between Real and Infinite (without adding a lot of methods for +, * etc to promote arguments) but maybe that's not really a problem?
  • Have two infinities: a real one and a time one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions