mercredi 23 septembre 2015

Scala: inferring a type parameter from class name

Here is what I am trying to do -

val classType = someMagicCode("com.mydomain.SomeClass")
someMethod[classType](someArgs)

Is it possible to do this in Scala? If yes, how?





Aucun commentaire:

Enregistrer un commentaire