Re:TypeScript vs. ReasonML
by hajile on Wednesday September 04, 2019 @05:58PM
(#20881830)
If you turn off `any` on a gradually-typed codebase, everything will blow up because of the untyped parts. Gradual typing CANNOT be sound unless you dynamically typecheck everything (at which point you are just doing what JS devs do anyway).
[ Parent
| on HN ]
> If you turn off `any` on a gradually-typed codebase, everything will blow up because of the untyped parts.
Again, that's not true. A JavaScript file's exports don't have `any` type. Any types during interop are inferred (maybe?) or require bindings. The use of `any` in bindings is your (sometimes valid) choice.
> Gradual typing CANNOT be sound
TypeScript isn't sound [0].