With equals sign:
object HelloWorld { def main(args: Array[String]) = { println(\"Hello!\") } }
Without equals sign:
As time as progressed the default style has changed, and this has been mentioned in many of the comments to answers, it is recommended in the official style guide to use the = syntax for function declarations.
=