Scala Programming Language
  1. Scala Programming Language
  2. SI-6422

Inconsistency between Fractional, Integral and Numeric

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.2, Scala 2.10.0-M7
    • Fix Version/s: Scala 2.11.0-M2
    • Component/s: Misc Library
    • Labels:

      Description

      In scala/package.scala we see:

      type Fractional[T] = scala.math.Fractional[T]
      type Integral[T] = scala.math.Integral[T]
      
      type Numeric[T] = scala.math.Numeric[T]
      val Numeric = scala.math.Numeric
      

      But Fractional and Integral have an associated object as well, and they should be aliased as well for consistency.

      I'm preparing a pull request for this to check for any unintended effects.

        Activity

        Show
        Paolo G. Giarrusso added a comment - https://github.com/scala/scala/pull/1426
        Hide
        Jason Zaugg added a comment -

        reverted on 2.10.x, retained on master: https://github.com/scala/scala/pull/2060

        Show
        Jason Zaugg added a comment - reverted on 2.10.x, retained on master: https://github.com/scala/scala/pull/2060

          People

          • Assignee:
            Paolo G. Giarrusso
            Reporter:
            Paolo G. Giarrusso
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development