Re: [ANN] Scala-2
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Mon, 03 Apr 2006 09:25:18 GMT
On Mon, 03 Apr 2006 10:50:29 +0200, francois.garillotNO@xxxxxxxxxxxx
(François Garillot) wrote, quoted or indirectly quoted someone who
said :
Scala also adds several important and convenient constructs, such as:
- mixin composition with traits,
- first-class functions,
- case classes and pattern matching,
- XML expressions and patterns,
- virtual types,
- for-comprehensions,
I was looking at some of the Scala examples. One of the ways it
differs from Java is you don't have to keep defining the types of
every variable. It KNOWS what the type it is by the signature of the
method that defines the variable's initial value. This is a very good
thing. It makes code less brittle. If you change the signature of a
method, the local variables all automatically track the change.
It gets rid of most semicolons.
It seems pretty straight forward except for "def" which seems to have
many uses.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- Prev by Date: Re: Eclipse project export
- Next by Date: What is wrong with IDEs?
- Previous by thread: Eclipse project export
- Next by thread: What is wrong with IDEs?
- Index(es):
Relevant Pages
|
|