4 ms·
> Python and JS are basically the same language in terms of semantics. Python is dynamic class-based OO with multiple inheritance. JS is dynamic prototypical O
by dragonwriter 4y ago
> Python and JS are basically the same language in terms of semantics.
Python is dynamic class-based OO with multiple inheritance. JS is dynamic prototypical OO, though it has recently added convenience syntax implementing single-inheritance class-based OO on top of it.
They are not the same.
- edflsafoiewq 4y agoIt's still redirecting to another object at runtime in both cases. The details are obviously not exactly identical but there's no great difference in the object model just because one is called a "class" and one is called a "prototype".
- Symmetry 4y agoPython also has much stronger typing in to converting types of things willy nilly without being instructed to.