Slide 10
Slide 10 text
01/16/2013
01/16/2013 Simon Ochsenreither
Simon Ochsenreither 10
10
Comparison to Java
Comparison to Java
Scala removes...
●
Unnecessary ; {} return
●
Static fields, methods, classes, ...
●
Operators (“+”, “-”, “*”, ...)
●
Primitive types (int, long, ...)
●
Special syntax for arrays ([]), ...
●
Raw types
●
Checked exceptions
●
break/continue
●
… and a lot more
Scala adds...
●
Better type system
●
Type inference
●
Traits
●
Lambdas/closures/functions
●
First-class modules
●
Pattern matching
●
Laziness and call-by-name
●
XML literals
●
Named and default arguments