List of Listings
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
Get Scala in Depth now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.