May 2012
Intermediate to advanced
304 pages
10h 21m
English
Chapter 1. Scala—a blended language
Listing 1.1. Byte conversions in scala.Predef object
Chapter 2. The core rules
Listing 2.1. Companion objects in REPL
Listing 2.2. Correct companion object in REPL
Listing 2.3. Inexpressible language features in the REPL
Listing 2.4. Java idiom: one return statement
Listing 2.5. Updated createErrorMessage with expression-oriented pattern match
Listing 2.6. Final expression-oriented createErrorMessage method
Listing 2.7. Example of imperative style code
Listing 2.8. Example mutable expression-oriented method
Listing 2.9. Mixing immutable and mutable objects with expression
Read now
Unlock full access