0 votes
in Scala Constructs by
Explain why Scala prefers Immutability?

1 Answer

0 votes
by
Scala takes the opposite approach; with functions, the arguments are val - i.e., immutable by default. This eliminates the need to type extra arguments. Scala is known for its use of immutability in design and in many cases, this is the default behavior. Immutability's benefits include addressing equality issues and concurrency.
...