Skip to content

Commit 9b584db

Browse files
committed
Move top level on a separate section and adjust terminology of IFTs
1 parent 9ae4ea9 commit 9b584db

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docs/blog/_posts/2019-03-04-13th-dotty-milestone-release.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,14 @@ implied for Conversion[String, Token] {
275275
}
276276
```
277277

278+
**Note:** that these release notes contain only a brief summary of the new
279+
features, for more details please read our documentation page under the new
280+
section named [*Contextual Abstractions*](https://dotty.epfl.ch/docs/). Equally
281+
important with the documentation of each feature, please consult the
282+
[Relationship with Scala 2 Implicits](https://dotty.epfl.ch/docs/reference/contextual/relationship-implicits.html) section as well.
283+
284+
## Introducing top level definitions
285+
278286
_Top level_ definitions are now supported. This means that package objects are
279287
now redundant, and will be phased out. This means that all kinds of definitions
280288
can be written at the top level.
@@ -286,9 +294,9 @@ type Labelled[T] = (String, T)
286294
val a: Labelled[Int] = ("count", 1)
287295
def b = a._2
288296

289-
case class C()
297+
final case class C()
290298

291-
implicit object Cops {
299+
implied {
292300
def (x: C) pair (y: C) = (x, y)
293301
}
294302
```
@@ -298,10 +306,6 @@ objects](https://dotty.epfl.ch/docs/reference/dropped-features/package-objects.h
298306
at the documentation linked or at the relevant PR
299307
[#5754](https://github.com/lampepfl/dotty/pull/5754).
300308

301-
**This blogpost offers only a brief summary of the new features, for more details
302-
please read our documentation page under the new section named [*Contextual
303-
Abstractions*](https://dotty.epfl.ch/docs/).**
304-
305309
## Implicit resolution rule changes
306310

307311
PR [#5887](https://github.com/lampepfl/dotty/pull/5887) applies the following

docs/docs/reference/contextual/relationship-implicits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Extension methods in implicit instances have no direct counterpart in Scala-2. T
107107

108108
Typeclass derivation has no direct counterpart in the Scala 2 language. Comparable functionality can be achieved by macro-based libraries such as Shapeless, Magnolia, or scalaz-deriving.
109109

110-
### Implicit Function Types
110+
### Context Query types
111111

112-
Implicit function types have no analogue in Scala 2.
112+
Context Query types have no analogue in Scala 2.
113113

114114
### Implicit By-Name Parameters
115115

0 commit comments

Comments
 (0)