私のコードと矛盾: val exitStatus = url #> outfile !
Scalaの後置演算子の警告がScaladoc
scala.sys.process: new URL("http://www.scala-lang.org/") #> new File("scala-lang.html") !
警告:
postfix operator ! should be enabled
[warn] by making the implicit value scala.language.postfixOps visible.
[warn] This can be achieved by adding the import clause 'import scala.language.postfixOps'
[warn] or by setting the compiler option -language:postfixOps.
[warn] See the Scaladoc for value scala.language.postfixOps for a discussion
[warn] why the feature should be explicitly enabled.
[warn] val exitStatus = url #> outfile !
[warn] ^
[warn] one warning found
WTF?
私は矛盾があるとは言いません。暗黙的に後置記法が使用されていますが、ドキュメントに*印を付ける必要があります*。 –
@YuvalItzchakov正確に私のポイント。アレクの返答に対する私のコメントを参照してください。 –