3 ms·
Type Error
by Shoop 12y ago
Type Error
- timepiece 12y agoDon't you know already that js is a dynamically typed language?
- Dewie 12y ago"Dynamically typed" doesn't mean "refuses to give any type errors, ever".
- rpcope1 12y agoPython is also dynamically typed, but it does something sane: >> "1" - 1 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for -: 'str' and 'int'
- seba_dos1 12y agoYou're confusing dynamic/static typing with weak/strong typing. JavaScript typing is dynamic and weak, while Python's is dynamic and strong.
- timepiece 12y agoNo I'm confusing dynamically typed langs with loosely typed ones. Thanks for bringing this to my attention :)