vendredi 11 décembre 2020

Why prefer implicit val over implicit object

When asking questions about implicits a common suggestion / recommendation / advice that is given together with the answer (or sometimes that is the answer itself) is to use implicit vals with excplicit type signatures instead of using implicit objects.

But, what is the reason behind that?

Aucun commentaire:

Enregistrer un commentaire