I'm not sure when this little "feature" got slipped into the Scala compiler, but now no longer need to choose an faux-meaningful name for your implicits. implicit val _: Show[Int] = _.toString Reality: the implicit has a name, and that name is `_`.
-
-
Scala could take a hint from Java's diamond operator and let you specify [] as a name to infer the name from the type... would even work for multiple implicits!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.