Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 635bb0b

Browse files
committed
Remove mentions of and warn against -Xexperimental.
1 parent 1e4c53f commit 635bb0b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ Typelevel Scala 2.11.8 offers the following fixes and features over Lightbend Sc
5050

5151
+ Support for partial unification (ie. a fix for [SI-2712][SI-2712]) — merged in Lightbend Scala 2.12.0-RC1.
5252

53-
An improvement to type inference for type constructors, enabled by the `-Ypartial-unification` scalac option (also
54-
enabled in `-Xexperimental` mode). This has many benefits for libraries, such as Cats and Scalaz, which make
55-
extensive use of higher-kinded types.
53+
An improvement to type inference for type constructors, enabled by the `-Ypartial-unification` scalac option. This
54+
has many benefits for libraries, such as Cats and Scalaz, which make extensive use of higher-kinded types.
5655

5756
Full details on the [pull request][pr-2712].
5857
+ Support for literal types (aka SIP-23) — proposed for Lightbend Scala 2.12.1.
5958

60-
Implements [literal types][SIP-23]. Enabled by `-Yliteral-types` (also enabled in `-Xexperimental` mode).
59+
Implements [literal types][SIP-23]. Enabled by `-Yliteral-types`.
6160

6261
Literals can now appear in type position, designating the corresponding singleton type. A `scala.ValueOf[T]` type
6362
class and corresponding `scala.Predef.valueOf[T]` operator has been added yielding the unique value of types with a
@@ -157,6 +156,10 @@ scalacOptions += "-Yliteral-types" // enable SIP-23 implementation
157156
Note that Typelevel Scala 2.11.8 replaces the [si2712fix compiler plugin][si2712fix-plugin] — if you are using
158157
it you should remove it from your build before switching to Typelevel Scala.
159158

159+
Also note that the two compiler flags above should be used in preference to `-Xexperimental` at present — as
160+
well as enabling the above two features `-Xexperimental` also enables some other features which are not typically
161+
desirable.
162+
160163
You now can verify that these features have been enabled from the SBT console,
161164

162165
```

0 commit comments

Comments
 (0)