News for hackers. Stuff that matters.
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

There are no comments on this comment yet.