Re:Dynamic type systems are not inherently more open
by IggleSniggle on Sunday January 19, 2020 @02:27PM
(#22093376)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.