Welcome to scala.sh

2016-07-24 | Is twitter censoring the DNC leaks?


2013-12-17 | The scala shell script no longer works with the latest 2.10.x releases.

./script.scala:2: error: ';' expected but string literal found.
exec scala "$0" "$@"
                ^
                one error found
This can be remedied by using the newer posix-friendly and posix-compliant 2.10.x mechanism:
#!/usr/bin/env scala
object HelloWorld {
    def main(args: Array[String]) {
        println("Hello, world! " + args.toList)
    }
}
HelloWorld main args


2012-08-01 | **Announcement** The scala.sh maven2 repositories are now online!


2012-06-03
RichSql.scala is a remarkable demonstration of the Scala programming language. read more or see the full source code of RichSQL.scala (mirror of the now defunct http://scala.sygneca.com/code/simplifying-jdbc)


2011-09-07
Did you know that it is possible to create scala shell scripts? I originally discoverd this from the scala.org article "Getting started with Scala".

#!/usr/bin/env bash
exec scala "$0" "$@"
!#
object HelloWorld {
    def main(args: Array[String]) {
        println("Hello, world! " + args.toList)
    }
}
HelloWorld main args