Skip to content

Commit

Permalink
FAQ: add note about release numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Sep 8, 2023
1 parent 3d768e8 commit 0e533cd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions _overviews/FAQ/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,18 @@ with only minor supplements. That's why `versionString` and
`versionNumberString` report that Scala 2 is in use:

```
Welcome to Scala 3.3.0 (17.0.3, Java OpenJDK 64-Bit Server VM).
Welcome to Scala 3.3.1 (17.0.3, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> util.Properties.versionNumberString
val res0: String = 2.13.11
val res0: String = 2.13.10
```

Note that Scala 3 offers
Note that even the latest Scala 3 version might not use the very
latest Scala 2 standard library, since the 3 and 2 release schedules
aren't coordinated.

So how do you ask for the Scala 3 version number? Scala 3 offers
`dotty.tools.dotc.config.Properties.versionNumberString`, but only if
you have scala3-compiler on the classpath. So that works in the Scala 3
REPL, but won't work in typical Scala 3 application code.
Expand Down

0 comments on commit 0e533cd

Please sign in to comment.