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

TypeScript can come close to this, especially with the latest release with Assertion support. You make assertions about your code, and the downstream types are inferred based on your assertions. Thus, the runtime behavior of your code gives you progressively enhanced type-checking. If you do these assertions at the borders, your "correctness" is dependent on the strength of your runtime assertions.


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

Search: