Domande taggate «abstract-type»

4
Scala: tipi astratti vs generici
Stavo leggendo A Tour of Scala: Abstract Types . Quando è meglio usare tipi astratti? Per esempio, abstract class Buffer { type T val element: T } piuttosto che i generici, per esempio, abstract class Buffer[T] { val element: T }
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.