Changes for page WebObjects with Scala

Last modified by Ravi Mendis on 2011/05/10 02:10

From version 451.1
edited by Ravi Mendis
on 2010/12/23 07:08
Change comment: There is no comment for this version
To version 450.1
edited by Ravi Mendis
on 2010/12/23 06:56
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,11 +1,14 @@
1 1  === What is Scala? ===
2 2  
3 -[[Scala>>http://en.wikipedia.org/wiki/Scala_(programming_language)]] is a JVM language that is a hybrid of Object-Oriented and Functional styles. Its [[functional language>>http://en.wikipedia.org/wiki/Functional_programming]] foundations and built-in Actors library makes it especially attractive for concurrent computing. In this day and age of multi-core processors concurrent computing can not be ignored.
3 +[[Scala>>http://en.wikipedia.org/wiki/Scala_(programming_language)]] is a JVM language that is a hybrid of Object-Oriented and Functional styles. It is useful as complete general purpose replacement for Java. But its built-in Actors library makes it especially attractive for concurrent computing. In this day and age of multi-core processors, concurrent computing can't be ignored.
4 4  
5 -Many of Scala's features have been designed with concurrency in mind, some of which may not be unfamiliar to Objective-C or WebObjects developers. Here's a summary:
5 +Many of Scala's features have been designed with concurrency in mind, primarily a preference for immutability and the use of other functional language paradigms.
6 +Some of these may not be unfamiliar to Objective-C or WebObjects developers.
6 6  
8 +Here's a quick summary:
9 +
7 7  |= |= Objective-C |= Java |= Scala
8 -|= Immutability | Collections //e.g: NSArray/NSMutableArray// | No | Yes
11 +|= Separation of Mutable & Immuable Datatypes | Collections //e.g: NSArray/NSMutableArray// | No | Yes
9 9  |= Closures | Blocks (//Extension//) | No | Anonymous Functions
10 10  |= Static variables | Yes | Yes | No
11 11  |= Static methods or functions | Yes | Yes | No