# Pre-SIP: Equivalent of \`inline implicit def\`

**URL:** <https://contributors.scala-lang.org/t/pre-sip-equivalent-of-inline-implicit-def/6590>\
**Category:** Language Design\
**Created:** [March 7, 2024, 7:58am UTC](https://contributors.scala-lang.org/t/pre-sip-equivalent-of-inline-implicit-def/6590 "2024-03-07T07:58:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![odersky](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/odersky/32/42_2.png) [@odersky](https://contributors.scala-lang.org/u/odersky)\
**Post date:** [March 7, 2024, 2:01pm UTC](https://contributors.scala-lang.org/t/pre-sip-equivalent-of-inline-implicit-def/6590/5 "2024-03-07T14:01:18Z")

</div>

The unrestricted use of implicit conversions is a code smell, which makes several aspects of the Scala type system and type inference fragile and slow. In current Scala 3, conversions require a language import at each use site. I am in favor of tightening the screws further and making use of conversions without that language import an error instead of just a feature warning.

See [Proposed Changes and Restrictions For Implicit Conversions](https://contributors.scala-lang.org/t/proposed-changes-and-restrictions-for-implicit-conversions/4923)

I plan to bring this up as a Pre-SIP soon. We had a long backup of other things that prevented this being proposed sooner. But it’s not forgotten.

In light of all this I am against making implicit conversions _more_ powerful and _more_ of a feature. In particular combining implicit conversions with macros makes me shudder.

Some libraries will have to be rewritten if that’s not longer possible, but that will be a good thing. We collectively need to wean ourselves off this implicit conversion drug. Maybe some specialized idioms will no longer be expressible. If we get a cleaner language with fewer footguns for it I am willing to make that trade.

---

_[View the full topic](https://contributors.scala-lang.org/t/pre-sip-equivalent-of-inline-implicit-def/6590)._
