File tree 1 file changed +3
-4
lines changed
docs/docs/reference/dropped
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ title: Dropped: Existential Types
6
6
Existential types using ` forSome ` have been dropped. The reasons for dropping them were:
7
7
8
8
- Existential types violate a type soundness principle on which DOT
9
- and Dotty are constructed. That principle says that every the
9
+ and Dotty are constructed. That principle says that every
10
10
prefix (` p ` , respectvely ` S ` ) of a type selection ` p.T ` or ` S#T `
11
11
must either come from a value constructed at runtime or refer to a
12
12
type that is known to have only good bounds.
13
13
14
14
- Existential types create many difficult feature interactions
15
15
with other Scala constructs.
16
16
17
- - Existential types have large overlap with path-dependent types,
17
+ - Existential types largely overlap with path-dependent types,
18
18
so the gain of having them is relatively minor.
19
19
20
20
Existential types that can be expressed using only wildcards (but not
@@ -29,5 +29,4 @@ of `Int`.
29
29
30
30
When reading classfiles compiled with _ scalac_ , Dotty will do a best
31
31
effort to approximate existential types with its own types. It will
32
- issue a warning is a precise emulation is not possible.
33
-
32
+ issue a warning that a precise emulation is not possible.
You can’t perform that action at this time.
0 commit comments