Scala Programming Language Intro
- Scala stands for "scalable language" and is a general-purpose programming language providing support for functional programming (multi-paradigm)
- also object-oriented
- Designed to be concise
- Scala is the 25th most popular programming language in February 2020 according to the TIOBE index
- License: Apache License 2.0
- File extensions: .scala, .sc
- First appeared January 20, 2004
- Hello World example:
object HelloWorld extends App {
println("Hello, World!")
}
$ scalac HelloWorld.scala
$ scala HelloWorld
- var keyword: mutable variable
var myVar : String = "Foo"
- val keyword: immutable variable
val myVal : String = "Foo"
val or val VariableName : DataType = [Initial Value]