Implicits for dependency injection

Using implicits is something that removes the requirement of having the component traits and self type annotations of the cake design pattern. Implicits, however, can quickly complicate method definitions because every method has to declare implicit parameters to whatever components it depends on.

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.