Większość z nas przeżywa dzięki scalac -help
, scalac -X
i scalac -Y
.
Nie zapomnij również o scala -help
.
Edit: sbt
użytkownik może zrobić zwykły:
> set scalacOptions in Compile += "-X"
> compile
[snip]
[info] -Xcheck-null Warn upon selection of nullable reference.
[info] -Xcheckinit Wrap field accessors to throw an exception on uninitialized access.
[info] -Xdisable-assertions Generate no assertions or assumptions.
[info] -Xdivergence211 Turn on the 2.11 behavior of implicit divergence not terminating recursive implicit searches (SI-7291).
[info] -Xelide-below <n> Calls to @elidable methods are omitted if method priority is lower than argument
[info] -Xexperimental Enable experimental extensions.
[info] -Xfatal-warnings Fail the compilation if there are any warnings.
[snip]
Przynajmniej strona podręcznika została zaktualizowana ostatnio:
https://issues.scala-lang.org/browse/SI-7824
Innym pomysłem jest pobranie źródła i 'ant docs.comp'. Następnie scala/build/scaladoc/compiler/index.html # scala.tools.nsc.Settings dziedziczy z ustawień standardowych i innych. Niestety, scaladoc to tylko lista. Innym pomysłem jest pobranie IDE Eclipse i przeglądanie tych źródeł w ten sposób. –