<p>In Scala, is it possible to get the string representation of a type at runtime?  I am trying to do something along these lines:</p>

<pre><code>def printTheNameOfThisType[T]() = {
  println(T.toString)
}
</code></pre>

Note: this answer is out of date!
Please see answer using TypeTag for Scala 2.10 and above
May I recommend #Scala on freenode
```
```
10:48 <seet_> http://stackoverflow.com/questions/190368/getting-the-string-representation-of-a-type-at-runtime-in-scala <-- isnt this posible?
10:48 <seet_> possible
10:48 <lambdabot> Title: Getting the string representation of a type at runtime in Scala - Stack Overflow,
                  http://tinyurl.com/53242l
10:49 <mapreduce> Types aren't objects.
10:49 <mapreduce> or values
10:49 <mapreduce> println(classOf[T]) should give you something, but probably not what you want.
```
```
Description of classOf