Perhaps one of the worst misfeatures of C is the ease with which responsibility for problems can be shifted to the person who wrote the code. “Oh, you segfaulted? I guess you forgot to check for
NULL
.” If only I had a computer to take care of such tedium for me!
Clearly, computers can’t be expected to do everything for us. But they can be expected to do quite a bit. Programming languages are built for
humans, and they ought to eliminate the sorts of rote work humans are bad at whenever possible. A programmer is already busy thinking about the actual problem they want to solve; it’s no surprise that they’ll sometimes forget some tedious detail the language forces them to worry about.
(с)
https://eev.ee/blog/2016/12/01/lets-stop-copying-c/