Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward-port the content of the Scala 2 book into the Scala 3 book #2792

Open
48 of 54 tasks
julienrf opened this issue May 5, 2023 · 12 comments
Open
48 of 54 tasks

Forward-port the content of the Scala 2 book into the Scala 3 book #2792

julienrf opened this issue May 5, 2023 · 12 comments

Comments

@julienrf
Copy link
Contributor

julienrf commented May 5, 2023

In an effort to unify the Scala 2 and Scala 3 documentation, we would like the current Scala 3 Book to become a complete documentation of Scala, describing the whole language and detailing the specificities of Scala 2 and Scala 3 when needed. Ultimately, it will be renamed to just “Scala Book”.

To get there, we must carefully read every page of the Scala 2 book and check that its content is fully covered by its corresponding page in the Scala 3 book. If something is missing, that should be added to the Scala 3 book. And if there is no corresponding page in the Scala 3 book, it should be added to it (possibly marked as Scala 2 specific if needed).

See also #2481 for a similar issue on the unification of the Scala 2 and Scala 3 documentation.


Here is a checklist that tracks our progress.

@adpi2
Copy link
Member

adpi2 commented Nov 18, 2024

Prelude: A Taste of Scala

@gkepka
Copy link
Contributor

gkepka commented Nov 18, 2024

Control Structures - Scala 3 Book and Control Structures - Scala 2 Book:

  • Scala 2 version: mention in the for section that for can also be used with List[String],
  • Scala 2 version: there is a subsection on the foreach method and an example of using case syntax,
  • Scala 2 version: match-case example shows how to place the right side of the => in a block,
  • Scala 3 version: multiple features not present in Scala 2 mentioned: for with multiple generators, guards in for, while loops, different types of patterns in match-case etc.

@sjrd
Copy link
Member

sjrd commented Nov 18, 2024

The classes stuff is in "Domain modeling -> Tools": https://docs.scala-lang.org/scala3/book/domain-modeling-tools.html

@sjrd
Copy link
Member

sjrd commented Nov 18, 2024

@sjrd
Copy link
Member

sjrd commented Nov 18, 2024

@gkepka
Copy link
Contributor

gkepka commented Nov 18, 2024

@adpi2
Copy link
Member

adpi2 commented Nov 18, 2024

@adpi2
Copy link
Member

adpi2 commented Nov 18, 2024

@gkepka
Copy link
Contributor

gkepka commented Nov 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants