Hacker News new | ask | show | jobs
by ndriscoll 531 days ago
Scala does it well. Implicits make it easy to pass along the instance you mean. You can put a default on the companion object if you want, but you can override where needed. Implicits on the companion object have lower priority than those in current scope.