文档介绍:Cover · Overview · Contents · Discuss · Suggest · Glossary · Index
Programming in Scala
Cover · Overview · Contents · Discuss · Suggest · Glossary · Index
Programming in Scala
Martin Odersky, Lex Spoon, Bill Venners
artima
ARTIMA PRESS
MOUNTAIN VIEW, CALIFORNIA
Cover · Overview · Contents · Discuss · Suggest · Glossary · Index
iv
Programming in Scala
First Edition, Version 6
Martin Odersky is the creator of the Scala language and a professor at EPFL in
Lausanne, Switzerland. Lex Spoon worked on Scala for two years as a post-doc
with Martin Odersky. Bill Venners is president of Artima, Inc.
Artima Press is an imprint of Artima, Inc.
. Box 390122, Mountain View, California 94039
Copyright © 2007, 2008 Martin Odersky, Lex Spoon, and Bill Venners.
All rights reserved.
First edition published as PrePrint™ eBook 2007
First edition published 2008
Produced in the United States of America
12 11 10 09 08 5 6 7 8 9
ISBN-10: 0-9815316-1-X
ISBN-13: 978-0-9815316-1-8
No part of this publication may be reproduced, modified, distributed, stored in a
retrieval system, republished, displayed, or performed, mercial or
mercial purposes or pensation of any kind without prior written
permission from Artima, Inc.
All information and materials in this book are provided "as is" and without
warranty of any kind.
The term “Artima” and the Artima logo are trademarks or registered trademarks of
Artima, Inc. All pany and/or product names may be trademarks or
registered trademarks of their owners.
Cover · Overview · Contents · Discuss · Suggest · Glossary · Index
to Nastaran - .
to Fay - .
to Siew - .
Cover · Overview · Contents · Discuss · Suggest · Glossary · Index
Overview
Contents vii
List of Figures xvii
List of Tables xix
List of Listings xx
Foreword xxvii
Acknowledgments xxix
Introduction xxxi
1. A Scalable Language 39
2. First Steps in Scala 58
3. Next Steps in Scala 71
4. Classes and Objects 93
5. Basic Types and Opera