Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's not very surprising; Haskell's type system is really that ridiculously powerful. But I suspect many hackers working with other languages would be able to state the equivalent: "I released a library which I only unit-tested, without writing any helper project that actually uses it".


except that they had to write unit tests - whereas the compiler/type system automatically checked the type safety of the code this guy wrote.

(Not that writing unit tests for haskell code is a bad idea - QuickCheck is WAY more powerful than junits, for example)


QuickCheck and JUnit have different purposes. QuickCheck is not a unit testing framework.


> QuickCheck and JUnit have different purposes. QuickCheck is not a unit testing framework.

Indeed. What I meant was that basically:

    P(HaskellCodeCorrect|Compile+QC+UnitTest) =~= P(OtherCodeCorrect|Compile+UnitTest)
while the distribution of effort between compilation (if any) and unit tests in other languages are quite different than in Haskell, i.e. skewed towards tests in the former and getting code to compile in the latter case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: