2 ms·
Abstract classes can be efficiently encoded, since the JVM understands that. The Scala collections collapse common sets of traits into abstract classes. Traits
by paulddraper 9y ago
Abstract classes can be efficiently encoded, since the JVM understands that. The Scala collections collapse common sets of traits into abstract classes.
Traits are copied, always I think. Only traits with all final methods could even possibly be not duplicated.