4 ms·
Yes, but using Elm has convinced me of the significant difference between runtime checks and compile time checks. In a large enough codebase, reaching every co
by zachrose 9y ago
Yes, but using Elm has convinced me of the significant difference between runtime checks and compile time checks.
In a large enough codebase, reaching every code path is non-trivial. It’s very easy to write code that only runs when it gets a certain response from a server, and at that point you need an entire integrated environment, plus a humongous space of configuration and use cases. (Or highly detailed mocks and 100% test coverage, which is even more rare.)
By contrast, you get that much certainty every time an Elm program compiles.
Maybe it’s possible to statically analyze JS to the point where you can get the same guarantees as compiling from a stricter language, but that seems very very hard.