Scala – Implicit

  • date 18th February, 2021 |
  • by Prwatech |
  • 0 Comments

Implicit Parameters

Implicit parameters are similar to regular method parameters, except they could be passed to a method silently without going through the regular parameters list.

Implicit conversions

When the compiler finds an expression of the wrong type for the context, it will look for an implicit Function value of a type that will allow it to type check.

 

Types Class

A type class is a group of types that satisfy a contract typically defined by a trait.

A type class is a type system construct that supports ad hoc polymorphism.

 

 

0
0

Quick Support

image image