| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Scala

Page history last edited by Manuel Kueblboeck 13 years, 5 months ago

Scala is short for Scalable Language. It smoothly integrates features of object-oriented and functional languages and its syntax is similar to Java. It has a very tight integration with Java and its byte code runs on the JVM.

 

Resources:

 

 

Observer pattern

trait Subject {
  private var observers : List[(Subject) => Any] = Nil
  def addObserver( cmd:(Subject) => Any ) = observers = cmd :: observers
  def notifyObservers() = observers.foreach( _(this) )
}

Comments (0)

You don't have permission to comment on this page.