4 ms·
How does what you're describing differ from polymorphism, or from doing OOP in loosely typed languages like javascript?
by vanviegen 3y ago
How does what you're describing differ from polymorphism, or from doing OOP in loosely typed languages like javascript?
- fzzzy 3y agoEvery single object in smalltalk is free to have its own implementation of handling a message. In javascript, the runtime decides for the object how to locate the code and how to call it.