Hacker News new | ask | show | jobs
by k__ 2821 days ago
So dependent types aren't static?

How does Idris solve this problem when compiling to JavaScript?

1 comments

Dependent types are static. GP was trying to say that this book is about more than just normal static typing (of the kind that TypeScript adds to JavaScript).

There is no problem compiling dependent (or static) types to JaveScript, as the type checks are done at compile time, and don’t require any support from the JavaScript runtime.