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 `_`.
-
-
Yeah, it sucks for silencing value discarding because `val _ = foo.value` is fine... until you need to evaluate and silently discard bar's return value...
-
I always copy/paste this https://gist.github.com/tabdulradi/81105786ef62345855276962d9d45316 … whenever I want to visibility discard values.
- Show replies
New conversation -
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.