3 ms·
There are many concepts which approach equivalence, e.g. the IO monad and the C preprocessor. http://conal.net/blog/posts/the-c-language-is-purely-functional h
by paulddraper 11y ago
There are many concepts which approach equivalence, e.g. the IO monad and the C preprocessor.
http://conal.net/blog/posts/the-c-language-is-purely-functional http://conal.net/blog/posts/the-c-language-is-purely-functio...
Likewise, tests and type systems approach equivalence (especially with dependent types).
Thus the distinctions are practical rather than purely theoretical.
(1) In practice, I find the static typing approach to result in more complete "tests".
(2) In practice, I don't see people writing reusable tests when they share code with others. However static types are are shared with the user's code, thus reducing the testing they need to write themselves.