News for hackers. Stuff that matters.
Re:Switching from C# to Java by rit on Tuesday April 13, 2010 @11:56AM (#1262371)
Scala has Manifests to emulate reified types for just this reason.

http://www.scala-blogs.org/2008/10/manifests-reified-types.h...

It's improved a bit in 2.8 - in porting some code I discovered a nice little hack that lets you declare your variance like this:

[A <: SomeBaseClass <: Manifest]

Which tells the compiler in an oh so gentle manner to reify for you.

There are no comments on this comment yet.