Skip to content

Commit 76d68d4

Browse files
committed
Two small clarifications
1 parent 4410b30 commit 76d68d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blog/_posts/2021-10-21-scala-3.1.0-released.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is a first *minor* release after the initial release of Scala 3.0. This has
1616

1717
Although we cannot guarantee full source compatibility between minor versions, we have put a lot of effort into assuring that all code that was working in 3.0.2, except some rare cases, will also work in 3.1.0. This means that if you are an application developer, you can confidently update the compiler version to take advantage of the newest improvements.
1818

19-
If you are a library maintainer, updating to 3.1.0 will force all of your users to need to update as well. You may consider still publishing your library using 3.0.2 to ensure that users who are reluctant to update a compiler can still use it. On the other hand, we still encourage you to test your library using 3.1.0. We understand that the current state of binary compatibility may be unsatisfactory for library maintainers. We are actively working on improvements in this area in future releases on scala.
19+
If you are a library maintainer, *updating to 3.1.0 will force all of your users to need to update as well*. You may consider still publishing your library using 3.0.2 to ensure that users who are reluctant to update a compiler can still use it. On the other hand, we still encourage you to test your library using 3.1.0. We understand that the current state of binary compatibility may be unsatisfactory for library maintainers. We are actively working on improvements in this area in future releases on scala.
2020

2121
## What's new in 3.1
2222

@@ -83,7 +83,7 @@ case class Middle() extends Top with Bottom
8383
sealed trait Bottom extends Top
8484
```
8585

86-
Previously you would not be able to summon an instance of `scala.deriving.Mirror.SumOf` for `Top`, as its child `Bottom` is also sealed. In Scala 3.1 this is now possible, enabling compiletime reflection over nested hierarchies of sealed types.
86+
Previously you would not be able to summon an instance of `scala.deriving.Mirror.SumOf` for `Top`, as its child `Bottom` is not a case class. In Scala 3.1 this is now possible, enabling compiletime reflection over nested hierarchies of sealed types.
8787

8888
The only change necessary for users is that you should now consider that one of the `MirroredElemTypes` for a `Mirror.SumOf` could also be a sum type, not just product types.
8989

0 commit comments

Comments
 (0)