4 ms·
It gives you something. Compare Facebook Flow or Google Closure Compiler. It gives you the flexibility of not having to prove types to the compiler sometimes,
by paulddraper 11y ago
It gives you something. Compare Facebook Flow or Google Closure Compiler.
It gives you the flexibility of not having to prove types to the compiler sometimes, but the safety of proving it other times. And yet you can write both programs in a familiar language.
You could do early binding. Closure, for example, transforms non-polymorphic functions into static functions. But you are correct that performance is not the primary objective; it is verification.
I personally prefer static typing all the way. But it's possible to make a decent argument for optional static typing.