Scala Reactive Programming
上QQ阅读APP看书,第一时间看更新

Scala implicits

Scala supports a powerful tool called implicits to ease the development of complex things in a concise and easy way. It reduces the verbosity of Scala applications.

We can use implicits to develop applications, DSLs, APIs, libraries, tools, and more, easily.

The main goal of Scala Implicits is to ease the process of extending the existing Scala Type system. We use the implicit keyword to define implicits in Scala.

Scala supports two kinds of implicits:

  • Implicit parameters
  • Implicit conversions