What it is good for

The interpreter design pattern is good for applications that deal with well-defined and well-understood domains. They could greatly simplify the application code. You should not confuse the interpreter design pattern with parsing, even though we needed parsing in order to build our expressions.

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.