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

It wouldn't solve that, but it would prevent the code from running with data that is incorrect according to type annotations. Think of it as a runtime assert that is automatically generated from the compile-time type annotation.

(Unfortunately, the JS runtime object model does not allow for such runtime type checks to be performed with reasonable performance.)



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

Search: