3 ms·
Huh? Scala has nothing remotely resembling Javascript's weird prototype thing.
by lmm 11y ago
Huh? Scala has nothing remotely resembling Javascript's weird prototype thing.
- acjohnson55 11y agoTrue, there's nothing in Scala that's like the dynamic inheritance/delegation of JS. But I'd say that in practice, people use Javascript's prototype functionality to implement static class- or mixin-based OOP.
- lmm 11y agoWell sure, but I'd say Scala's model is more similar to any of Java, Python, Ruby or C++ than it is to Javascript. So I don't see that it's a "Javascript model".