# Can We Wean Scala Off Implicit Conversions?

**URL:** <https://contributors.scala-lang.org/t/can-we-wean-scala-off-implicit-conversions/4388>\
**Category:** Language Design\
**Created:** [July 2, 2020, 9:51am UTC](https://contributors.scala-lang.org/t/can-we-wean-scala-off-implicit-conversions/4388 "2020-07-02T09:51:12Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![kavedaa](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/kavedaa/32/2588_2.png) [@kavedaa](https://contributors.scala-lang.org/u/kavedaa)\
**Post date:** [July 2, 2020, 2:45pm UTC](https://contributors.scala-lang.org/t/can-we-wean-scala-off-implicit-conversions/4388/23 "2020-07-02T14:45:43Z")

</div>

I would imagine that a codebase like [ScalaFX](http://www.scalafx.org/) would have some problems if implicit conversions were removed. One of its selling points is “Seamless JavaFX/ScalaFX Interoperability”, and as far as I understand that seamless interoperability is provided by implicit conversions.

It essentially wraps Java objects in Scala objects, with implicit conversions between them, e.g.:

```auto
object Node {
  implicit def sfxNode2jfx(v: Node): jfxs.Node = if (v != null) v.delegate else null
}

```

One could of course fall back to using explicit methods e.g `.toJfx`, and `.toSfx` (as extension method, or alternatively `SFX.fromJfx`), but implicit conversions remove this “noise”.

In general I think allowing methods inside a class’ companion object for implicitly converting to/from that class is very useful, whether it is done with the current `implicit def` mechanism or something else.

---

_[View the full topic](https://contributors.scala-lang.org/t/can-we-wean-scala-off-implicit-conversions/4388)._
