You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/changed-features/structural-types.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,6 @@ Structural calls like this tend to be much slower than normal method calls. The
114
114
**Note:** In Scala 2, Java reflection is the only mechanism available for structural types and it is automatically enabled without needing the
115
115
`reflectiveSelectable` conversion. However, to warn against inefficient
116
116
dispatch, Scala 2 requires a language import `import scala.language.reflectiveCalls`.
117
-
For a limited time, Scala 3 will honor the same language import (but not the
118
-
associated command-line option) to import `reflectiveSelectable` instead.
119
117
120
118
Before resorting to structural calls with Java reflection one should consider alternatives. For instance, sometimes a more a modular _and_ efficient architecture can be obtained using typeclasses.
0 commit comments