Back to Developer Roadmap

Implicit parameters

src/data/roadmaps/scala/content/[email protected]

4.0950 B
Original Source

Implicit parameters

Implicit parameters are passed to functions without having to explicitly specify them at the call site. This can make your code more concise and readable, especially when dealing with common or boilerplate code. In Scala 2, they were declared with the implicit keyword. In Scala 3, we use keywords given and using. The given keyword is used to define instances of implicit values, and the using keyword is used to declare context parameters.

Visit the following resources to learn more: