Skip to content

Commit c5ae185

Browse files
authored
Update existential-types.md
1 parent 3601214 commit c5ae185

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/docs/reference/dropped/existential-types.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ title: Dropped: Existential Types
66
Existential types using `forSome` have been dropped. The reasons for dropping them were:
77

88
- 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
1010
prefix (`p`, respectvely `S`) of a type selection `p.T` or `S#T`
1111
must either come from a value constructed at runtime or refer to a
1212
type that is known to have only good bounds.
1313

1414
- Existential types create many difficult feature interactions
1515
with other Scala constructs.
1616

17-
- Existential types have large overlap with path-dependent types,
17+
- Existential types largely overlap with path-dependent types,
1818
so the gain of having them is relatively minor.
1919

2020
Existential types that can be expressed using only wildcards (but not
@@ -29,5 +29,4 @@ of `Int`.
2929

3030
When reading classfiles compiled with _scalac_, Dotty will do a best
3131
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.

0 commit comments

Comments
 (0)