top | item 46388360

(no title)

nikisweeting | 2 months ago

genuinely curious, doesn't JS's proxy objects and prototype-based MRO have a similar performance impact in theory?

discuss

order

cpburns2009|2 months ago

Yeah, 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|2 months ago

Urban myths.

Most people that parrot repeat Python dynamism as root cause never used Smalltalk, Self or Common Lisp, or even PyPy for that matter.