Re:Graham’s Guide to Learning Scala
by thebluesky on Friday November 23, 2012 @04:56AM
(#4821640)
Scala for the Impatient is definitely the best introduction to Scala (by a wide margin). Re-posting your link:
http://blog.typesafe.com/free-pdf-from-typesafe-scala-for-th...
[ Parent
| on HN ]
Re:Graham’s Guide to Learning Scala
by thebluesky on Friday November 23, 2012 @05:28AM
(#4821726)
The preferred way of launching an app in Scala is as follows:
object HelloWorld extends App {
println("Hello, world!")
}
Rather than manually creating a main method, as is done in the OP blog.It's also possible to simply write:
println("Hello World")
and that would be the entire app, but the preferred way of doing things is to extend App