Hacker News new | ask | show | jobs
by thebluesky 4951 days ago
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