4 ms·
genuinely curious, doesn't JS's proxy objects and prototype-based MRO have a similar performance impact in theory?
by nikisweeting 10mo ago
genuinely curious, doesn't JS's proxy objects and prototype-based MRO have a similar performance impact in theory?
- cpburns2009 10mo agoYeah, I don't see how Python is fundamentally different from JavaScript as far as dynamicism goes. Sure Python has operator overloading, but JavaScript would implement those as regular methods. Pyrhon's init & new aren't any more convoluted than JavaScript's constructors. Python may support multiple inheritance but method and attribute resolution just uses the MRO which is no different than JavaScript's prototype chain.
- pjmlp 10mo agoUrban myths. Most people that parrot repeat Python dynamism as root cause never used Smalltalk, Self or Common Lisp, or even PyPy for that matter.