Scala: How can I get the class name of a variable in a function?
I would like to do something like def foo[V] : String = { V.getName }
, but of course it is not correct. I am using the name of the class name to locate the file containing the serialized instance of the class on the file system.