Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Scala is a modern, multi-paradigm JVM language that is most often compared to Groovy, Clojure or and Erlang. Its functional language foundations and built-in Actors library make it especially attractive for concurrent computing. (Scala is an abbreviation for "scalable" hinting at its design goals).

...

Here's an example of accessing variables in the following languages:

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="05821e59-209c-43ab-9273-c41bcb96089e"><ac:plain-text-body><![CDATA[]]></ac:plain-text-body></ac:structured-macro>

 

Objective-C

Java

Scala

getter

[WO:object name]

object.name()

object.name

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="97891c3d-9fc5-4cc2-9afb-04b2aac6999d"><ac:plain-text-body><![CDATA[

setter

[object setName:aName]

object.setName(aName)

object.name = aName

Of course in Java, we may generate WebObjects classes with "get" methods as well in order to stick to convention.
In scala there is an additional convenience we may use to produce "get" and "set" methods in addition to the default Scala accessors - Scala Annotations.

...