On Fri, Jan 14, 2011 at 12:56 PM, Kevin Wright <[email protected]>wrote:

> Currently, the language just goes a long way towards encouraging
> immutability and freedom from side effects


How? I really don't see it this way.

You can use var or val. You can modify fields inside methods. Only case
classes are final.

I don't see much in the overall philosophy behind the language that's very
different from Java's in terms of immutability, and most defaults are toward
mutability.

If Scala programs tend to have more immutable structures than Java programs,
it's much more because of the discipline of its developers than because the
language encourages it.

I see this as a good thing, by the way, but I think your claim is just plain
incorrect.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to