7.27.2008

HelloWorld in Scala with the Eclipse Plug-in

The Eclipse plug-in for Scala makes you jump through two hoops before letting you run your application from the Run... menu:
  1. Your main object must extend Application.
  2. Since main is now overridden, you must use the override keyword on the method definition.
package activeactive
object Main extends Application {
  override def main(args:Array[String]) {
    println("Hello World!")
  }
}

No comments: