How do I declare a generic variable in Scala without initializing it (or initializing to any value)?
def foo[T] { var t: T = ???? // tried _, null t }
You can't not initialize local variables, but you can do so for fields:
scala> class foo[T] { | var t: T = _ | } defined class foo