Loading presentation...

Present Remotely

Send the link below via email or IM


Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.



Scala Language

Choucri Fahed

on 17 June 2009

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Scala

A Scalable Language
Object Oriented
Created at EPFL by Martin Odersky in 2003
Used by Twitter, Siemens, SAP, EDF...
Compiles to Java bytecode and runs on top of the JVM
Clever static typing
Everything is an object
2 > 1 <=> 2.>(1)
map containsKey 'a' <=> map.containsKey('a')
map should have key ('a')
No static members but singleton objects
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!")
Single class inheritance, multiple trait inheritance
Functions are 1st class citizens
All functions are values
Anonymous functions
Higher order functions
Functional Pogramming encourages
'Final' variables
Immutable objects
Transformation of data structures
Functions with no side effects
boolean nameHasUpperCase = false;
for (int i = 0; i < name.length(); ++i) {
if (Character.isUpperCase(name.charAt(i))) {
nameHasUpperCase = true;
final boolean nameHasUpperCase =
val nameHasUpperCase = name.exists(_.isUpperCase)
List(1,2,3,4) map (_ * 2) foreach println
Full transcript