3 ms·
JavaScript has every feature you listed, plus a ton. I'll give you the batteries included part, but you're missing the critical component here, which is Python
by JBReefer 8y ago
JavaScript has every feature you listed, plus a ton.
I'll give you the batteries included part, but you're missing the critical component here, which is Python's dep mgmt story is terrible. Pyenv seems cool, but it's basically NPM - which is a critical part of what they're trying to do here.
- zimablue 8y agoYou can definitely mess up with python envs but JS absolutely doesn't have all the features I listed. It doesn't have anything like python's built in power of classes, it's not just having a class syntax which is a thin wrapper around prototypes, it's having metaclasses, class decorators, properties, type comparison that works for inheritance, super(). It also doesn't have sane types/casts.
- paradite 8y agoJavaScript by design supports both full OOP and full functional programming. There is no reason why you cannot implement what you mentioned in JavaScript.