Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
10 user(s) are online (10 user(s) are browsing encyclopedia)

Members: 0
Guests: 10

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Scala

Scala is a multi-paradigm programming programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages.

=Scala is object-oriented=

Scala is a pure object-oriented language in the sense that every value is an object. Types and behavior of objects are described by classes and traits. Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance.

=Scala is functional=

Scala is also a functional language in the sense that every function is a value. Scala provides a lightweight syntax for defining anonymous functions, it supports higher-order functions, it allows functions to be nested, and supports currying. Scala s case classes and its built-in support for pattern matching model algebraic types used in many functional programming languages.

Furthermore, Scala s notion of pattern matching naturally extends to the processing of XML data with the help of regular expression patterns. In this context, sequence comprehensions are useful for formulating queries. These features make Scala ideal for developing applications like web services.

=Scala is statically typed=

Scala is equipped with an expressive type system that enforces statically that abstractions are used in a safe and coherent manner. In particular, the type system supports:

  • generic classes,
  • variance annotations,
  • upper and lower type bounds,
  • classes and abstract types as object members,
  • compound types,
  • explicitly typed self references,
  • views, and
  • polymorphic methods.
  • =Scala is extensible=

    The design of Scala acknowledges the fact that in practice, the development of domain-specific applications often requires domain-specific language extensions. Scala provides a unique combination of language mechanisms that make it easy to smoothly add new language constructs in form of libraries:

  • any method may be used as an infix or postfix operator, and
  • closures are constructed automatically depending on the expected type (target typing).
  • A joint use of both features facilitates the definition of new statements without extending the syntax and without using macro-like meta-programming facilities.

    =Scala interoperates with Java and .NET=

    Scala is designed to interoperate well with popular programming environments like the Java platform 2 Runtime Environment (JRE) and the Microsoft .NET CLR. In particular, the interaction with mainstream object-oriented languages like Java and C# is as smooth as possible. Scala has the same compilation model (separate compilation, dynamic class loading) like Java and C# and allows access to thousands of high-quality libraries.

    =Hello World example=

    The Hello world program written in Scala:.

    object HelloWorld with Application { Console.println( Hello, world! ); }

    =External links=

    *[http://scala.epfl.ch/ Scala website]

    Musical Tuning

    Scala is also a freeware program available on the Web which allows the user to create scale (music) (tunings), edit them, analyze them, play their sounds, and export these tunings to MIDI instruments. The program was created by Manuel Op de Coul in the Netherlands.

    Scala s motto is INVENIT ET PERFICIT which means It finds and perfects or It discovers and accomplishes in Latin. Its logo is a Renaissance-style relief print of a cherub holding a compass (drafting) and a globe with a diatonic musical scale which has a circle of fifths inscribed within it.

    The program allows the user to experiment with microtones.

    =External links=

    *[http://www.xs4all.nl/~huygensf/scala/ Scala s home page]