# Updated Proposal: Revisiting Implicits

**URL:** <https://contributors.scala-lang.org/t/updated-proposal-revisiting-implicits/3821>\
**Category:** Scala Improvement Process\
**Created:** [November 20, 2019, 3:23pm UTC](https://contributors.scala-lang.org/t/updated-proposal-revisiting-implicits/3821 "2019-11-20T15:23:53Z")\
**Posts on this page:** 1\
**Showing post:** 380

<div class="post-metadata">

**Author:** ![morgen-peschke](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/morgen-peschke/32/2528_2.png) [@morgen-peschke](https://contributors.scala-lang.org/u/morgen-peschke)\
**Post date:** [February 5, 2020, 2:21pm UTC](https://contributors.scala-lang.org/t/updated-proposal-revisiting-implicits/3821/380 "2020-02-05T14:21:50Z")

</div>

> [@dwijnand](#):
>
> I haven’t followed all the discussions, but if this is in response to SIP proposals it’s not for “We think this is easy” reasons, but for things like keeping the language complexity down, and maintaining compiler speed, etc.
> 
> I don’t see @smarter talking down to you, but I can understand the frustration on having to uplift and relocate a discussion into another forum (a dotty issue), and I encourage you to.

I was really hoping after @smarter’s last comment that this would simply die, but if comments are going to be added on the tag end of this thing without going back and reading the whole discussion, then perhaps it’s worth providing a summary.

I made this comment about the proposal referencing typeclass definition boilerplate:

> [@morgen-peschke](#):
>
> I don’t particularly mind the idea of typeclasses being regular types and instances, as it’s one less thing to remember. What I’d really like is some way to reduce the declaration site boilerplate involved in setting one up.

That sparked a series of questions about what, exactly, I meant by that, which I did my best to explain. Concrete examples were requested:

> [@smarter](#):
>
> Concrete examples would be nice. If your typeclass contains extension methods, you don’t need to import them separately, they are in scope if an implicit of the typeclass is in scope, so no import tax there.

After this point, things get weird. I attempted to provide those concrete examples, like this one containing a permalink to one class which has that behavior:

> [@morgen-peschke](#):
>
> For example, the only way I could consistently get the extension methods for this [`Convertible`](https://github.com/morgen-peschke/sql2json/blob/master/src/main/scala/sql2json/types/Convertible.scala) typeclass to compile was to use the [`given ops[A]: AnyRef { ... }` ](https://github.com/morgen-peschke/sql2json/blob/ec0c48d653c18b418d1f9f796ebbed0f60208c2f/src/main/scala/sql2json/types/Convertible.scala#L21) style of defining extension methods, and explicitly import them using [`import types.Convertible.given`](https://github.com/morgen-peschke/sql2json/blob/ec0c48d653c18b418d1f9f796ebbed0f60208c2f/src/main/scala/sql2json/jdbc/SqlResult.scala#L7) in each file where I wanted to use them.

And [this comment](https://contributors.scala-lang.org/t/updated-proposal-revisiting-implicits/3821/349), which minimizes it down to something that would fit in scastie, were met with terse redirections to go read the docs. This one is pretty representative:

> [@smarter](#):
>
> There’s a concrete example right in [https://dotty.epfl.ch/docs/reference/contextual/typeclasses-new.html](https://dotty.epfl.ch/docs/reference/contextual/typeclasses-new.html), notice how the extension method `combine` is available in `sum` without any import ? This works because a given `Monoid[T]` is in scope.

Note that, on the whole, the concrete examples appear to have been taken as intended, so I’m somewhat dubious that the problem is on my end. I’d link the responses, but they’re temporally adjacent so they’re easy to find, and I’d like to avoid dragging anyone else into this mess.

Apparently, @smarter thought I was kvetching about either the proposal or trying to report a bug, rather than trying to explain a misunderstanding about the current state of things that isn’t addressed by the proposal.

I can see how, from their point of view, it was intended as a helpful redirection back on topic. From my point of view the terse nature and off-topic suggestions came off as condescending and dismissive. I’m not sure how this disconnect between, “Concrete examples would be nice”, and “go look at the docs” happened, and I frankly don’t care at this point.

The bit about the macros has been covered to death in other threads. A good summary of why I find this unhelpful and a form of “talking down” can be found [here](https://contributors.scala-lang.org/t/sip-name-based-xml-literals/2175/58).

For the record:

- I like the current proposal
- The definition boilerplate, is a thing, but it’s is less than in Scala 2
- While it’d be nice to reduce it further, it just isn’t worth it to me to continue to engage

---

_[View the full topic](https://contributors.scala-lang.org/t/updated-proposal-revisiting-implicits/3821)._
