Skip to content

Commit d7775ee

Browse files
committed
Address review comments
1 parent ce519fd commit d7775ee

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/blog/_posts/2018-04-27-eighth-dotty-milestone-release.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ and enables integration with tools such as [Bloop](https://scalacenter.github.io
3636
If you are already using Dotty with sbt 0.13, follow these simple steps to upgrade:
3737
- update sbt version to 1.1.4 in `project/build.properties`
3838
- update sbt-dotty plugin to the latest version: `addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.2.2")`
39-
- update usages of `.withDottyCompat()` by `.withDottyCompat(scalaVersion.value)`
39+
- replace usages of `.withDottyCompat()` by `.withDottyCompat(scalaVersion.value)`
4040

4141
### Unchecked warnings [#4045](https://github.com/lampepfl/dotty/pull/4045)
42-
Dotty now emits `unchecked` warnings like `scalac` whenever a type test is performed but cannot
43-
safely be checked at runtime. For example:
42+
Dotty now emits `unchecked` warnings like `scalac` whenever a type test is performed but cannot be
43+
fully checked at runtime because of type erasure. For example:
4444

4545
```scala
4646
scala> def foo(x: Any) = x.isInstanceOf[List[String]]
@@ -90,8 +90,9 @@ f[[X] => String]
9090
section of our documentation.
9191

9292
### Improved support for SAM type [#4152](https://github.com/lampepfl/dotty/pull/4152)
93-
This release includes fixes to SAM types that greatly improve interoperability with Java 8 lambdas.
94-
One can now easely write Scala code that uses Java streams:
93+
This release includes fixes to [SAM types](https://www.scala-lang.org/news/2.12.0/#lambda-syntax-for-sam-types)
94+
that greatly improve interoperability with Java 8 lambdas. One can now easily write Scala code that
95+
uses Java streams:
9596

9697
```scala
9798
val myList =
@@ -104,6 +105,7 @@ myList
104105
.sorted
105106
.forEach(println(_))
106107

108+
// prints:
107109
// C1
108110
// C2
109111
```

0 commit comments

Comments
 (0)