3 ms·
> Until the code has actually been tested, he doesn't know that it works, he just thinks that it does. After the code has been tested, he still doesn't know th
by JadeNB 14y ago
> Until the code has actually been tested, he doesn't know that it works, he just thinks that it does.
After the code has been tested, he still doesn't know that it works, only that it sometimes produces the expected output. (As a mathematician, it's a lot easier for me to trust a proof than an empirical verification; but I agree that what the HM type system proves is not always what one wants it to prove.)
- scott_s 14y agoI agree. I claim that he knows that it works under the circumstance that he has tested, and can be more confident that it will work in circumstances similar to what he has tested.
- zopa 14y agoTrue. But with very general code, like this library, it would be difficult for unit tests to cover more than a small fraction of the domain.