3 ms·
> At least with C++ you can reason that if a change compiles it has not made any dramatically stupid type errors. And with Python you can reason that if code
by pcwalton 11y ago
> At least with C++ you can reason that if a change compiles it has not made any dramatically stupid type errors.
And with Python you can reason that if code parses it isn't going to have undefined behavior (for example, segfaults randomly thousands of lines away from the actual problem due to heap corruption, or exploitable use-after-free vulnerabilities).
Type safety only has the benefits you describe if the language is actually type safe.