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

Short AnyVal guide for docs.scala-lang.org

    Details

      Issue Links

        Activity

        Hide
        Mark Harrah added a comment -

        What is the difference between this and SI-6398?

        Show
        Mark Harrah added a comment - What is the difference between this and SI-6398 ?
        Hide
        Heather Miller added a comment -

        The idea was that from the point of view of `AnyVal` as a type (not knowing anything about value classes), you can now in 2.10 suddenly extend `AnyVal`. So someone who comes across someone else extending `AnyVal` in some arbitrary code somewhere would need to make the connection between that and value classes, and googling `AnyVal` doesn't provide anything of use. So, the idea was to bridge the concepts.

        However, I realize that since this text would so short, it'd probably be best to just add this info to the `AnyVal` Scaladoc with a pointer to the short value classes guide that you just wrote.

        Show
        Heather Miller added a comment - The idea was that from the point of view of `AnyVal` as a type (not knowing anything about value classes), you can now in 2.10 suddenly extend `AnyVal`. So someone who comes across someone else extending `AnyVal` in some arbitrary code somewhere would need to make the connection between that and value classes, and googling `AnyVal` doesn't provide anything of use. So, the idea was to bridge the concepts. However, I realize that since this text would so short, it'd probably be best to just add this info to the `AnyVal` Scaladoc with a pointer to the short value classes guide that you just wrote.
        Hide
        Heather Miller added a comment -

        That said, I can take this and write the AnyVal Scaladoc.

        If anyone would rather it be organized differently- suggestions welcome

        Show
        Heather Miller added a comment - That said, I can take this and write the AnyVal Scaladoc. If anyone would rather it be organized differently- suggestions welcome
        Hide
        Mark Harrah added a comment -

        Makes sense. You can also now extend Any to define a universal trait.

        Show
        Mark Harrah added a comment - Makes sense. You can also now extend Any to define a universal trait.
        Hide
        Heather Miller added a comment -

        Added AnyVal and Any docs: https://github.com/scala/scala/pull/1558

        Show
        Heather Miller added a comment - Added AnyVal and Any docs: https://github.com/scala/scala/pull/1558

          People

          • Assignee:
            Heather Miller
            Reporter:
            Heather Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development