What it is good for

As we already mentioned, the value object design pattern is good for multithreading and creating data transfer objects (DTOs). It is something extremely easy to achieve in Scala, and many people use it on a daily basis without even realizing that it actually is a design pattern. Value objects are another example of the fact that Scala is a really powerful language.

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.