The article confuses immutability with being 'final' (both in Java and in Scala). From the article:"In Java you can use the final keyword to differentiate variables that are not mutable. Scala has two keywords val and…
The article confuses immutability with being 'final' (both in Java and in Scala). From the article:"In Java you can use the final keyword to differentiate variables that are not mutable. Scala has two keywords val and…