Description
I have seen it come up many many times on Gitter and elsewhere, that people thought -Xfuture
(which doesn't exist anymore) or -Xsource:...
was something it was just fine to sprinkle on their scalacOptions
without thinking too much about it
for example, -Xfuture
is included in https://tpolecat.github.io/2017/04/25/scalac-flags.html , which is widely referred to (/cc @tpolecat)
over at https://docs.scala-lang.org/overviews/compiler-options/index.html the entry for -Xsource
just says:
Treat compiler input as Scala source for the specified version, see #8126
I suggest that -Xsource:...
be documented as something that should only be used for experimenting and to get migration information, you shouldn't enable it when building something you're going to deploy or publish
why? because these flags enable poorly-tested combinations of possibly half-baked stuff, the version of the compiler you get when you enable this hasn't been QA'ed anywhere near as heavily as the default one has
and since we have published the reference to #8126, I would also suggest that the description on that ticket be improved so that anyone consulting it will see the same warning text