3 ms·
> One of the reasons I like languages with more advanced types systems such as Haskell's or Scala's is because test suites in other languages to achieve the sam
by infraruby 12y ago
> One of the reasons I like languages with more advanced types systems such as Haskell's or Scala's is because test suites in other languages to achieve the same code coverage take much longer to run.
Do you mean Haskell has better runtime performance than dynamic languages, test for test, or that programs in dynamic languages need more tests (say, tests of function return types), or both?
In practice programs are written by programmers, not generated randomly, so it is not necessary to test "all the things that can go wrong" but only the things that programmers actually do wrong in practice.
- frowaway001 12y agoWith your reasoning bugs would have just stopped existing altogether decades ago. Obviously they haven't.
- infraruby 12y agoSuppose a function f(a, b) should return the sum of its arguments (i.e. a + b). What tests would you write for this function?