Scala (programming language)
general-purpose programming language From Wikipedia, the free encyclopedia
Scala is a general-purpose programming language—a language that is designed for solving all kinds of problems, not just a specific one.[1]
Designed by | Martin Odersky |
---|---|
Developer | Programming Methods Laboratory of École Polytechnique Fédérale de Lausanne |
Filename extensions | .scala, .sc |
Website | www |
It provides support for functional programming, and is statically typed. It is designed to fix some problems with Java,[2] and to be concise—to be able to express a lot with only a little bit of code.[3]
Scala code is supposed to be compiled into Java bytecode, so Scala code can be run on a Java Virtual Machine (JVM). Scala has language interoperability with Java—Scala code can be used in Java programs, and the other way around.[4]
Examples
"Hello, World" example
This is a small example of a Scala program. A simple Hello world program:
@main def main() = println("Hello, World!")
References
Wikiwand - on
Seamless Wikipedia browsing. On steroids.