Isn't there a distinction between the two? The return type of classOf[String] is Class[String] while for implicitly[ClassTag[String]].runtimeClass it is Class[_]. I actually have a use case where I'd need the former (Class[String]) but don't know how to get it from an implicit witness. Any ideas?
Cheers, Stefan
Am Dienstag, 30. April 2013 14:19:49 UTC+2 schrieb Simon Ochsenreither:
I think it is a very good question why we make people go through implicitly[ClassTag[E]].runtimeClass, instead of making classOf work if a ClassTag is available.This