Tag Archives: case class

Defensive object copies in java and how scala avoids it

In one word: immutability. But read on for the whole history =) In another, old post, I wrote about the usage a primitive long value instead of Date objects in attributes. This kind of thing is usually called defensive copy, … Continue reading

Posted in java, scala | Tagged , , , , , , , , , | 1 Comment