Two reasons:
- We depend on the Scala 2 standard library for binary compatibility, but we also have our own addition the standard library currently named
dotty-library
, we can’t rename it toscala-library
and still depend on the Scala 2scala-library
. - This makes it possible to depend on both the Scala 2 and Scala 3 compiler in the same project, this could be useful for tooling (e.g., The Scala 2 to Scala 3 typer and implicit resolver)