Back2Basics: The Magic of Implicits

Knoldus Blogs

Implicit System is one of Scala’s language greatest feature with the help of which we can write concise code. The implicit system in Scala allows the compiler to adjust code using a well-defined lookup mechanism.

In this post, we will try to understand how Scala’s implicit work magically.

Scala provides an implicit keyword that can be used in two ways: method or variable definitions, and method parameter lists.

Let us define a method.

View original post 414 more words

Leave a comment