I’m pretty excited about this. Does anyone know what the memory footprint of supporting this is going to be, or will type information be added to compiled objects in an ad-hoc basis?
Firstly you need scala-reflect.jar (3mb) and then for any type you want to reflect, you need to add an implicit context for scala.reflect.universe.TypeTag. That means the Scala compiler will only create type tags for types that you use reflectively.
I’m pretty excited about this. Does anyone know what the memory footprint of supporting this is going to be, or will type information be added to compiled objects in an ad-hoc basis?
Firstly you need scala-reflect.jar (3mb) and then for any type you want to reflect, you need to add an implicit context for scala.reflect.universe.TypeTag. That means the Scala compiler will only create type tags for types that you use reflectively.