-
45
pages
-
English
-
Documents
Description
Tutorial on Writing Modular Programs in ScalaMartin Odersky and Gilles Dubochet13 September 2006Tutorial on Writing Modular Programs in Scala Martin Odersky and Gilles Dubochet 1 of 45Welcome to the Scala tutorial at JMLC 2006A half-day tutorial on the Scala programming language.A rapid, no-frills, presentation of Scala as a language forwriting modular programs.For Java or related programmers.Be advised, you will work too: this is an interactive hands-ontutorial: get your computer ready!Tutorial on Writing Modular Programs in Scala Martin Odersky and Gilles Dubochet 2 of 45Meeting ScalaPattern matchingFunctionsMixinsHigher-order FunctionsThis afternoon’s plan1 Meeting Scala2 Pattern matching3 Functions4 Mixins5 Higher-order FunctionsTutorial on Writing Modular Programs in Scala Martin Odersky and Gilles Dubochet 3 of 45Meeting ScalaPattern matching Scala as a Java cloneFunctions Pushing the envelopeMixins Hands-onHigher-order FunctionsScala vs. JavaAt first glance, Scala is similar to Java (or C]).or rather everything Java has to offer can be found in Scala.Scala is object-oriented, statically typed, throws exceptions,etc.Scala’s syntax will look familiar to Java programmers.Scala compiles to Java bytecode: it runs on any JVM.Scala even shares Java’s libraries: all classes and methodsdefined as a Java libraries are transparently accessible fromScala code.Tutorial on Writing Modular Programs in Scala Martin Odersky and Gilles Dubochet 4 ...
-
Publié par
-
Langue
English