@@ -25,17 +25,38 @@ object language:
25
25
*/
26
26
// object dependent
27
27
28
- /** Experimental support for named type arguments */
28
+ /** Experimental support for named type arguments.
29
+ *
30
+ * @see [[https://dotty.epfl.ch/docs/reference/other-new-features/named-typeargs ]]
31
+ */
29
32
object namedTypeArguments
30
33
31
- /** Experimental support for generic number literals */
34
+ /** Experimental support for generic number literals.
35
+ *
36
+ * @see [[https://dotty.epfl.ch/docs/reference/changed-features/numeric-literals ]]
37
+ */
32
38
object genericNumberLiterals
33
39
end experimental
34
40
35
- /** Where imported, auto-tupling is disabled */
41
+ /** Where imported, auto-tupling is disabled.
42
+ *
43
+ * '''Why control the feature?''' Auto-tupling can lead to confusing and
44
+ * brittle code in presence of overloads. In particular, surprising overloads
45
+ * can be selected, and adding new overloads can change which overload is selected
46
+ * in suprising ways.
47
+ *
48
+ * '''Why allow it?''' Not allowing auto-tupling is difficult to reconcile with
49
+ * operators accepting tuples.
50
+ */
36
51
object noAutoTupling
37
52
38
- /** Where imported, loose equality using eqAny is disabled */
53
+ /** Where imported, loose equality using eqAny is disabled.
54
+ *
55
+ * '''Why allow and control the feature?''' For compatibility and migration reasons,
56
+ * strict equality is opt-in. See linked documentation for more information.
57
+ *
58
+ * @see [[https://dotty.epfl.ch/docs/reference/contextual/multiversal-equality ]]
59
+ */
39
60
object strictEquality
40
61
41
62
/** Where imported, ad hoc extensions of non-open classes in other
@@ -56,9 +77,27 @@ object language:
56
77
*/
57
78
object adhocExtensions
58
79
59
- /** Source version */
80
+ /** Set source version to 3.0-migration.
81
+ *
82
+ * @see [[https://scalacenter.github.io/scala-3-migration-guide/docs/scala-3-migration-mode ]]
83
+ */
60
84
object `3.0-migration`
85
+
86
+ /** Set source version to 3.0.
87
+ *
88
+ * @see [[https://scalacenter.github.io/scala-3-migration-guide/docs/scala-3-migration-mode ]]
89
+ */
61
90
object `3.0`
91
+
92
+ /** Set source version to 3.1-migration.
93
+ *
94
+ * @see [[https://scalacenter.github.io/scala-3-migration-guide/docs/scala-3-migration-mode ]]
95
+ */
62
96
object `3.1-migration`
97
+
98
+ /** Set source version to 3.1
99
+ *
100
+ * @see [[https://scalacenter.github.io/scala-3-migration-guide/docs/scala-3-migration-mode ]]
101
+ */
63
102
object `3.1`
64
103
end language
0 commit comments