Summary

In this chapter, we went through the second group of behavioral design patterns. You are now familiar with iterators, mediators, memento, observer, state, template method, and the visitor design pattern. You might feel that these are purely object-oriented design patterns that don't have much to do with functional programming, and you would be correct. However, they are still relevant to Scala due to its hybrid nature and it is important to be aware of them and to know when to use them.

Some of the design patterns in this chapter are quite commonly used and can be seen in many projects, while others are a bit more rare and specific to some use cases. These patterns, combined with all the other ones you learned about in the previous ...

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.