Questions tagged «abstract-type»

4
Scala:抽象类型与泛型
我正在阅读《 Scala之旅:抽象类型》。什么时候使用抽象类型更好? 例如, abstract class Buffer { type T val element: T } 而不是例如泛型 abstract class Buffer[T] { val element: T }
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.