Hacker News new | past | comments | ask | show | jobs | submit login

A unit test covers a some particular properties hold for some cases (e.g. you verify that foo gives bar). A type system guarantees that for all instances of the types, certain properties hold.

Given the choice, I know which I'd choose!

In practise it's not quite that simple, but designing around the types and shifting the burden of testing on to the compiler seems like the way forward.




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

Search: