Skip to content

Commit 592063a

Browse files
authored
update FAQ for Scala 3 release (#2074)
1 parent baff05d commit 592063a

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

_overviews/FAQ/index.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
layout: singlepage-overview
33
title: Scala FAQ
44
permalink: /tutorials/FAQ/index.html
5-
redirect_from:
5+
redirect_from:
66
- "/tutorials/FAQ/breakout.html"
77
- "/tutorials/FAQ/chaining-implicits.html"
88
- "/tutorials/FAQ/collections.html"
99
- "/tutorials/FAQ/context-bounds.html"
1010
- "/tutorials/FAQ/finding-implicits.html"
1111
- "/tutorials/FAQ/finding-symbols.html"
12-
- "/tutorials/FAQ/stream-view.html"
12+
- "/tutorials/FAQ/stream-view.html"
1313
- "/tutorials/FAQ/yield.html"
1414
---
1515

@@ -35,25 +35,21 @@ are out there; there are many.
3535

3636
You can go on the [Scala room on
3737
Gitter](https://gitter.im/scala/scala) or another community forum and
38-
ask for book recommendations, but note that you'll get more helpful
38+
ask for book recommendations. You'll get more helpful
3939
answers if you provide some information about your background and your
4040
reasons for wanting to learn Scala.
4141

4242
### Should I learn Scala 2, or Scala 3?
4343

44-
The default choice remains Scala 2 for now. Most Scala jobs are Scala
45-
2 jobs; most Scala books and online learning materials cover Scala 2;
46-
tooling and library support is strongest in Scala 2; and so on.
44+
Scala 3 was released in May 2021. Because Scala 3 is still so new,
45+
most Scala jobs are Scala 2 jobs; most Scala books and online learning
46+
materials cover Scala 2; tooling and library support is strongest in
47+
Scala 2; and so on.
4748

48-
Scala 3.0.0 is planned for release in 2021, and a number of
49-
Scala 3 books will come out in 2021 as well. In time, there will
50-
be more and more Scala 3 jobs as well.
49+
Thus, Scala 2 remains a common and reasonable choice.
5150

52-
### When is Scala 3 coming out?
53-
54-
In 2021. Watch the [Scala blog](https://www.scala-lang.org/blog/)
55-
for announcements. For a more detailed view of how work is progressing,
56-
see the [Dotty milestones](https://github.com/lampepfl/dotty/milestones).
51+
Some books that cover Scala 3 are already available; more are on the
52+
way. In time, there will be more and more Scala 3 jobs as well.
5753

5854
### Where are Scala jobs advertised?
5955

@@ -181,19 +177,18 @@ differ from a function value such as:
181177

182178
val square: Int => Int = x => x * x
183179

184-
[Complete answer on Stack Overflow](https://stackoverflow.com/a/2530007/4111404).
185-
186-
[Summary with practical differences](https://tpolecat.github.io/2014/06/09/methods-functions.html).
180+
For Scala 2, there is a [complete answer on Stack Overflow](https://stackoverflow.com/a/2530007/4111404)
181+
and a [summary with practical differences](https://tpolecat.github.io/2014/06/09/methods-functions.html).
187182

188-
Note that in **Scala 3** most of the differences will go;
183+
Note that in **Scala 3** the differences are fewer;
189184
for example, they will be able to
190185
[accept implicit parameters](https://dotty.epfl.ch/docs/reference/contextual/context-functions.html)
191186
as well as [type parameters](https://dotty.epfl.ch/docs/reference/new-types/polymorphic-function-types.html).
192187

193188
Nevertheless, it is still recommended to use methods most of the time,
194189
unless you absolutely need a function. And, thanks to
195190
[eta-expansion](https://stackoverflow.com/questions/39445018/what-is-the-eta-expansion-in-scala)
196-
you rarely would need to define a function over a method.
191+
you rarely would need to define a function rather than a method.
197192

198193
### What's the difference between types and classes?
199194

0 commit comments

Comments
 (0)