This is an old revision of the document!
Scala
Scalable langa
Start
- No primitive types, everything is an object
- No semicolon
- Object is a singleton
- Methods can be defined private or protected. If no modifer is given, method is public.
- No static methods
Hello World
Control structures
if/else-Constructs have a return value
for loop
for (i ← 1 to 10) println(i)