Programming in Scala

Front Cover
Artima Inc, 2008 - Computers - 736 pages
Programming in Scala is the definitive book on Scala, the new language for the Java Platform that blends object-oriented and functional programming concepts into a unique and powerful tool for developers. Coauthored by the designer of the Scala language, this authoritative book will teach you, one step at a time, the Scala language and the ideas behind it. The book is carefully crafted to help you learn. The first few chapters will give you enough of the basics that you can already start using Scala for simple tasks. The entire book is organized so that each new concept builds on concepts that came before - a series of steps that promises to help you master the Scala language and the important ideas about programming that Scala embodies. A comprehensive tutorial and reference for Scala, this book covers the entire language and important libraries.
 

Contents

A Scalable Language
3
First Steps in Scala
23
Next Steps in Scala
37
Classes and Objects
59
Basic Types and Operations
73
Functional Objects
95
Builtin Control Structures
115
Functions and Closures
139
Implicit Conversions and Parameters
437
Implementing Lists
459
For Expressions Revisited
473
Extractors
489
Annotations
505
Working with XML
513
Modular Programming Using Objects
527
Object Equality
543

Control Abstraction
161
Composition and Inheritance
177
Scalas Hierarchy
205
Traits
213
Packages and Imports
233
Assertions and Unit Testing
249
Case Classes and Pattern Matching
263
Working with Lists
297
Collections
329
Stateful Objects
357
Type Parameterization
381
Abstract Members
407
Combining Scala and Java
569
Actors and Concurrency
583
Combinator Parsing
619
GUI Programming
649
The SCells Spreadsheet
661
Scala scripts on Unix and Windows
687
Glossary
689
Bibliography
705
About the Authors
709
Index
711
Copyright

Common terms and phrases

Bibliographic information