Re:Pyre: Fast Type Checking for Python
by tigershark on Saturday May 12, 2018 @12:21PM
(#17054737)
REPL are not confined to dynamic typed languages. Using a better programming language you won’t have any need for a lot of your tests.
[ Parent
| on HN ]
Re:Pyre: Fast Type Checking for Python
by crdoconnor on Sunday May 13, 2018 @02:49PM
(#17060321)
>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.