Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest methods are 'still' deprecated #6742

Closed
scabug opened this issue Nov 30, 2012 · 5 comments
Closed

Manifest methods are 'still' deprecated #6742

scabug opened this issue Nov 30, 2012 · 5 comments

Comments

@scabug
Copy link

scabug commented Nov 30, 2012

From what I understand Manifest was un-deprecated.

But it looks surprising that a bunch of his methods (<:<, >:>, erasure) are deprecated:
http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/index.html#scala.reflect.Manifest

Sounds like it should be completely deprecated or not, am I missing something?

@scabug
Copy link
Author

scabug commented Nov 30, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6742?orig=1
Reporter: Alois Cochard (aloiscochard)
Affected Versions: 2.10.0-RC3

@scabug
Copy link
Author

scabug commented Nov 30, 2012

@SethTisue said:
Seems like an oversight. evidence: the deprecation message says "Use scala.reflect.runtime.universe.TypeTag for subtype checking instead". But (unlike ClassTag) TypeTag is experimental in 2.10, and methods shouldn't be deprecated if the alternatives are still experimental.

@scabug
Copy link
Author

scabug commented Dec 2, 2012

@xeno-by said:
scala/scala#1694

@scabug
Copy link
Author

scabug commented Dec 5, 2012

@xeno-by said:
jsuereth commented:

We talked about it earlier and decided the existing behavior of <;< needed to be depreacted. While TypeTags aren't "stable" yet, the behavior of <:< is something we want people not to use regardless of whether or not TypeTags become stable...

@scabug scabug closed this as completed Dec 5, 2012
@scabug
Copy link
Author

scabug commented Dec 5, 2012

@SethTisue said:
I see. Makes sense.

btw, in case anyone sees this and gets confused (as I did for a little bit just now): Predef has classes called <:< etc, used to implement methods such as toMap. Those classes are not deprecated. This ticket isn't about them. It's about the methods on Manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants