Scala is an actively used programming language created in 2004.

15Years Old 481,678Users 4,559Jobs

Example code from the Hello World Collection:

// Hello world in Scala

object HelloWorld extends App {
  println("Hello world!")
}

Example code from Linguist:

#!/bin/sh
exec scala "$0" "$@"
!#

object HelloWorld {
  def main(args: Array[String]) {
    println("Hello, world!")
  }
}

Example code from Wikipedia:

val urls = List("http://scala-lang.org",  "https://github.com/scala/scala")

def fromURL(url: String) = scala.io.Source.fromURL(url)
  .getLines().mkString("\n")

val t = System.currentTimeMillis()
urls.par.map(fromURL(_))
println("time: " + (System.currentTimeMillis - t) + "ms")
Edit

Last updated February 11th, 2019