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

>> and the interpreter is not throwing an error which was my point. > That's true of most compiled languages

True of most statically typed languages (usually no need to check at runtime), but not true in Python or other dynamically typed languages. Python would have been unusable for decades (prior to typehints) if that was true.



That's just reflection. That's a feature of code, not language runtime. I think there are some languages which in fact have type checking in the runtime as a bona-fide feature. Most won't, unless you do something like isinstance()




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

Search: