Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 448 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
448
Dung lượng
3,37 MB
Nội dung
[...]... Introducing Scala Download at WoweBook.Com Type in the following two lines of code: val book = "Programming Scala" println(book) The actual input and output should look like the following: scala> val book = "Programming Scala" book: java.lang.String = ProgrammingScala scala> println(book) ProgrammingScala scala> The first line uses the val keyword to declare a read-only variable named book Note that... IntelliJ NetBeans Text Editors Test-Driven Development in Scala ScalaTest Specs ScalaCheck Other Notable Scala Libraries and Tools Lift Scalaz Scalax MetaScala JavaRebel Miscellaneous Smaller Libraries Java Interoperability Java and Scala Generics Using Scala Functions in Java JavaBean Properties AnyVal Types and Java Primitives Scala Names in Java Code Java Library Interoperability AspectJ The Spring Framework... distributed, component-based applications that support concurrency and distribution You’ll also learn how Scala takes advantage of the advanced Java Virtual Machine as a platform for programming languages Learn more at http://programmingscala.com or at the book’s catalog page Welcome to ProgrammingScalaProgramming languages become popular for many reasons Sometimes, programmers on a given platform prefer... the scala command Others must be compiled into class files Some files contain deliberate errors and won’t compile We have adopted a file naming convention to indicate each of these cases, although as you learn Scala it should become obvious from the contents of the files, in most cases: *-script .scala Files that end in -script .scala can be run on a command line using scala, e.g., scala foo-script .scala. .. follows: sbaz install scala- devel-docs sbaz is installed in the same bin directory as the scala and scalac command-line tools The installed documentation also includes details on the scala tool chain (including sbaz) and code examples For more information on the Scala command-line tools and other resources, see Chapter 14 A Taste of Scala It’s time to whet your appetite with some real Scala code In the... 342 14 Scala Tools, Libraries, and IDE Support 343 Command-Line Tools scalac Command-Line Tool The scala Command-Line Tool The scalap, javap, and jad Command-Line Tools The scaladoc Command-Line Tool The sbaz Command-Line Tool The fsc Command-Line Tool Build Tools Integration with IDEs Eclipse IntelliJ NetBeans Text Editors Test-Driven Development in Scala ScalaTest... general-purpose programming language for the kinds of applications we build today: reliable, high-performance, highly concurrent Internet and enterprise applications xvii Download at WoweBook.Com Scala is a multi-paradigm language, supporting both object-oriented and functional programming approaches Scala is scalable, suitable for everything from short scripts up to large-scale, component-based applications Scala. .. applications using Scala s Actors; how to make effective use of Scala s XML/XPath support; how to utilize Scala s rich, flexible, and expressive syntax to build Domain-Specific Languages; how to effectively test your Scala code; how to use Scala with popular frameworks such as Spring, Hadoop, and Terracotta; and much, much more Enjoy the ride I sure did —Jonas Bonér Independent Consultant, Scalable Solutions... aspect-oriented programming (AOP) community For years, he has done pioneering work in the Java community Now he is applying his energies to promoting Scala and growing that community Bill Venners graciously provided the quote on the back cover The first published book on Scala, Programming in Scala (Artima), that he cowrote with Martin Odersky and Lex Spoon, is indispensable for the Scala developer... references Of the set of newer JVM languages, Scala is one of the few that is statically typed, and it is the best known among them Mixed paradigm—object-oriented programmingScala fully supports object-oriented programming (OOP) Scala improves upon Java’s support for OOP with the addition of traits, a clean way of implementing classes using mixin composition Scala s traits work much like Ruby’s modules . Development in Scala 361
ScalaTest 361
Specs 363
ScalaCheck 365
Other Notable Scala Libraries and Tools 367
Lift 367
Scalaz 367
Scalax 368
MetaScala 368
JavaRebel. a
platform for programming languages.
Learn more at http://programmingscala.com or at the book’s catalog page.
Welcome to Programming Scala
Programming languages