Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Type Error


Don't you know already that js is a dynamically typed language?


Python 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'


You're confusing dynamic/static typing with weak/strong typing. JavaScript typing is dynamic and weak, while Python's is dynamic and strong.


No I'm confusing dynamically typed langs with loosely typed ones. Thanks for bringing this to my attention :)


"Dynamically typed" doesn't mean "refuses to give any type errors, ever".




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: