4 ms·
Except with C++ you have a compiler to tell you your code is broken. With Python you have to use MyPy which isn't perfect or write tests with 100% code coverag
by CodeGlitch 5y ago
Except with C++ you have a compiler to tell you your code is broken. With Python you have to use MyPy which isn't perfect or write tests with 100% code coverage. I've never seen 100% code coverage...
- jnwatson 5y agoThe C++ compiler and mypy tell you about the same thing: your typing is consistent. Neither is even close to perfect about finding defects. You have to write unit tests anyway to validate other useful properties about your code. If you’re not close to 100% you’re doing it wrong. Even 100% coverage is a fairly low bar these days.