Jump to content

Dotty

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by DariaKarasek (talk | contribs) at 22:14, 23 August 2020 (Undid revision 968659722 by JalenFolf (talk)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Dotty is the next version of Scala programming language - Scala 3.0 - with a new compiler (also called Dotty)[1]. According to Martin Odersky, the creator of Dotty (and Scala in general), it will come out as a completed product in 2020.[2]

Name ‘Dotty' comes from the new foundation of the Scala language that it represents - Dependent Object Types (DOT). DOT is a core calculus for path-dependent types which enhance Scala language and its type system.[3]

The language specifications are the same in Scala 2 and Scala 3. The main difference is the compiler. Also, the type system for Scala 3 is based upon a new foundation, called the DOT calculus. Using this foundation affects which types you can use in your program, and increases confidence that if a program passes Dotty's typechecker it will not have type errors.[4]

New types

References

  1. ^ lampepfl/dotty, Programming Methods Laboratory EPFL, 2020-07-20, retrieved 2020-07-20
  2. ^ "Towards Scala 3". www.scala-lang.org. Retrieved 2020-07-20.
  3. ^ "Dependent Object Types.Towards a foundation for Scala's type system" (PDF). EPFL. Retrieved 2020-07-20.{{cite web}}: CS1 maint: url-status (link)
  4. ^ "Towards Scala 3". www.scala-lang.org. Retrieved 2020-07-20.