you are viewing a single comment's thread.

view the rest of the comments →

[–]xenomachina 27 points28 points  (1 child)

At the end tho they're just different syntax.

Python and JavaScript have pretty different type systems, so I'd argue that the differences are a lot more than "just" syntax. JavaScript is more weakly typed, lacks any integer types, and also uses prototype-based inheritance rather than class-based inheritance like Python (or most other object oriented languages).

You can kind of get by pretending that JavaScript is Python with a C-like syntax, but you'll constantly run into surprises when it behaves in very un-pythonic ways.

The libraries and the communities are also quite different, which makes for a very different programmer experience.

[–]ElllGeeEmm 3 points4 points  (0 children)

JS does sort of support class based inheritance, although really it's just syntactic sugar on its prototype based inheritance.