3 ms·
Having the correct type doesn't guarantee correctness. As a noob C programmer, in my programs segfaults often occur along with undefined behaviour (which is mu
by witty_username 10y ago
Having the correct type doesn't guarantee correctness.
As a noob C programmer, in my programs segfaults often occur along with undefined behaviour (which is much worse, as your program will silently give the wrong output).
While in Python, you'd get a traceback which is much easier to debug.
> Requiring a massive set of tests to actually validate your code.
Both require tests to validate your code. Sure, static typing can verify some trivial mistakes, but they can't check that array accesses are in bounds, integer overflow, etc.
- kruczek 10y ago> As a noob C programmer, in my programs segfaults often occur along with undefined behaviour (which is much worse, as your program will silently give the wrong output). > While in Python, you'd get a traceback which is much easier to debug. Well, C's segfault will also generate core dump, which is essentially the same thing as Python's traceback - it tells you where the program crashed.