Scala: Abstract types vs generics
问题 I was reading A Tour of Scala: Abstract Types . When is it better to use abstract types? For example, abstract class Buffer { type T val element: T } rather that generics, for example, abstract class Buffer[T] { val element: T } 回答1: You have a good point of view on this issue here: The Purpose of Scala's Type System A Conversation with Martin Odersky, Part III by Bill Venners and Frank Sommers (May 18, 2009) Update (October2009): what follows below has actually been illustrated in this new