3 ms·
Python vs JavaScript?
by drno123 6y ago
Python vs JavaScript?
- speedgoose 6y agoPython vs PHP also.
- pansa2 6y ago> full of these sorts of interesting behavior I don’t think that applies to Python - it’s quite strongly (although not statically) typed. I agree that it does apply to JavaScript and PHP.
- eitland 6y agoJavascript and PHP is correct.
- exyi 6y agoI think this applies to Python pretty well. Although certainly not as bad as PHP, most JS traps also exist in Python (falsy values, optional glitchy semicolons, function scoped variables, mutable closure). There is many JS specific traps like this and also other Python specific ones (like static fields are also instance fields, Python versions and library dependency hell). However I find it easier to avoid them in JS than in Python with TypeScript, avoiding classes, ...