- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Type signature of Manifest.erasure
Mon, 2011-05-23, 15:23
Greetings,
After running some search on google I wasn't able to find an answer...
Why is the property 'erasure' from the class 'Manifest' of type java.lang.Class and not Class (the scala one) ? http://www.scala-lang.org/api/current/index.html#scala.reflect.Manifest
I understand that type erasure come from Java world, but I'm bit skeptic about how to make code using Manifest portable across different Scala implementation.
Wouldn't be possible to use Manifest on .NET (since erasure doesn't occur on .NET must be possible to have parameterized type an other way...) ? erasure is perhaps not a good name... couldn't be more generic ?
Thanks for your help,
--
Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard
After running some search on google I wasn't able to find an answer...
Why is the property 'erasure' from the class 'Manifest' of type java.lang.Class and not Class (the scala one) ? http://www.scala-lang.org/api/current/index.html#scala.reflect.Manifest
I understand that type erasure come from Java world, but I'm bit skeptic about how to make code using Manifest portable across different Scala implementation.
Wouldn't be possible to use Manifest on .NET (since erasure doesn't occur on .NET must be possible to have parameterized type an other way...) ? erasure is perhaps not a good name... couldn't be more generic ?
Thanks for your help,
--
Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard