2 ms·
>Using a better programming language you won’t have any need for a lot of your tests. I know of no type system that can acts as a reasonable substitute for a w
by crdoconnor 8y ago
>Using a better programming language you won’t have any need for a lot of your tests.
I know of no type system that can acts as a reasonable substitute for a well written integration test. How exactly is your type system going to provide a reasonable assurance that my code will work as expected with an upgraded database, for example?
They can substitute sanity checks and poorly written low level unit tests that should really have been sanity checks. I've seen nothing more impressive than that.
I've heard rumors of the amazing things you can do with haskell's type system and the old chestnut that "if it compiles it works" but in practice the one piece of software I use in haskell is, at best, averagely buggy.