Scala Tutorialsを読む 5 Printing values

http://scalatutorials.com/tour/interactive_tour_of_scala_printing_values.html

今日は5のPrinting valuesを読みます。

値の出力とかか。

Scala has a "shortcut" to Java's System.out.println ScalaはJavaのSystem.out.printlnのショートカットを持っています。(なのでべんりだぜ

(as well as print, printf etc.) (...はもちろん、print,printfなども)

They are all defined in a class それらはクラスの中ですべて定義されている

that is imported by default インポートされたデフォルトで(scala.Predef)

それらは、デフォルトでインポートされた(scala.Predef)クラスの中ですべて定義されていると。


See Also opens in new page.

参照 新しいページを開いて

でリンク貼られていると。

System.out.printlnは長くて面倒くさいので、printlnって書けるのは嬉しいねって話ですね。 明日は、6 String interpolationだ。

予習しておこう

  • interpolation 書き入れ 補間, 内挿 改ざん

文字列の中になにか書き入れる機能みたいな話ですね。何かっていうと式だとかって話になるわけだけど、まあ明日に続く。