3 ms·
Python and JS are basically the same language in terms of semantics.
by edflsafoiewq 4y ago
Python and JS are basically the same language in terms of semantics.
- _ZeD_ 4y agowell, as long as both of them are descendant of modula 2 :) but no. while both languages share some similarities (dynamically typed, some form of "objects" and "classes") there are a lot of differences, both at "language level" and at "implementation level"
- edflsafoiewq 4y agoWhat are some important differences do you think?
- exebook 4y agoLexical scope and first class functions in JavaScript as a descendant from Lisp.
- 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.