Skip to content

Commit 1909201

Browse files
committed
Mention implicit conversion restrictions in overview
It's a minor point, but important for many people that it is addressed.
1 parent ef4a81d commit 1909201

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/docs/reference/overview.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ Listed in this section are new language constructs that help precise, typechecke
6969
So what should conceptually be a type error would not be reported and
7070
runtime behavior might change instead. Multiversal equality closes that loophole.
7171

72+
- Restrict Implicit Conversions
73+
74+
([Pending](https://github.com/lampepfl/dotty/pull/4229))
75+
Implicit conversions are very easily mis-used, which makes them the cause of much suprising behavior.
76+
We now require a language feature import not only when an implicit conversion is defined
77+
by also when it is applied. This protects users of libraries that define implicit conversions
78+
from being bitten by unanticipated feature interactions.
79+
7280
- Null safety
7381

7482
(Planned) Adding a `null` value to every type has been called a "Billion Dollar Mistake"

0 commit comments

Comments
 (0)