# Scala.reflect and Scala 3

**URL:** <https://contributors.scala-lang.org/t/scala-reflect-and-scala-3/1967>\
**Category:** Dotty\
**Created:** [June 8, 2018, 10:04am UTC](https://contributors.scala-lang.org/t/scala-reflect-and-scala-3/1967 "2018-06-08T10:04:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwijnand](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/dwijnand/32/796_2.png) [@dwijnand](https://contributors.scala-lang.org/u/dwijnand)\
**Post date:** [June 8, 2018, 10:04am UTC](https://contributors.scala-lang.org/t/scala-reflect-and-scala-3/1967/1 "2018-06-08T10:04:48Z")

</div>

Porting from [Remove Manifest and friends by smarter · Pull Request #6745 · scala/scala · GitHub](https://github.com/scala/scala/pull/6745).

@lrytz asks:

> What’s going to happen to `scala.reflect` in Scala 3?

@odersky says in [https://contributors.scala-lang.org/t/what-kinds-of-macros-should-scala-3-support/1850/14:](https://contributors.scala-lang.org/t/what-kinds-of-macros-should-scala-3-support/1850/14:)

> The future Scala 3 macro design is intended to replace the existing def macros and the `scala.reflect` infrastructure.

@smarter (who opened the PR) indicates:

> I think it’s pretty clear that scala.reflect if it exists in Scala 3 won’t be recognizable since the current API exposes implementation details.

/cc @retronym from the thread too.

---

<div class="post-metadata">

**Author:** ![martijnhoekstra](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/martijnhoekstra/32/608_2.png) [@martijnhoekstra](https://contributors.scala-lang.org/u/martijnhoekstra)\
**Post date:** [June 8, 2018, 10:30am UTC](https://contributors.scala-lang.org/t/scala-reflect-and-scala-3/1967/2 "2018-06-08T10:30:34Z")

</div>

Also, I’d like to note the context of the discussion: what to do with the deprecated Manifest and friends. Candidates are:

- Removal?
- Indefinite deprecation for the lifecycle of Scala 2 and removal in Scala 3?
- Un-deprecation?
- Other?

---

<div class="post-metadata">

**Author:** ![jducoeur](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/jducoeur/32/32_2.png) [@jducoeur](https://contributors.scala-lang.org/u/jducoeur)\
**Post date:** [June 8, 2018, 12:16pm UTC](https://contributors.scala-lang.org/t/scala-reflect-and-scala-3/1967/3 "2018-06-08T12:16:16Z")

</div>

Hmm. One data point: while I stopped using `Manifest` per se ages ago, I _do_ use `ClassTag` extensively, to obtain the `runtimeClass`. Losing that would hurt – not irreplaceably, but the hassle would be considerable…

---

<div class="post-metadata">

**Author:** ![smarter](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/smarter/32/92_2.png) [@smarter](https://contributors.scala-lang.org/u/smarter)\
**Post date:** [June 8, 2018, 1:25pm UTC](https://contributors.scala-lang.org/t/scala-reflect-and-scala-3/1967/4 "2018-06-08T13:25:01Z")

</div>

`ClassTag` works in Dotty, it doesn’t depend on `scala-reflect` even though it’s in the `scala.reflect` namespace.
