4 ms·
> What's the point of a memory safe language if your whole program could fail for a simple out of memory condition? The point is to be able to do more complex
by feanaro 5y ago
> What's the point of a memory safe language if your whole program could fail for a simple out of memory condition?
The point is to be able to do more complex things more easily and performantly, while also not introducing trivial security vulnerabilities like buffer overflows.
> But... what's the point on fighting the language when you can just use C?
The point is to learn not to fight it. At that point, the language becomes much more effective to use than C.
Proper C, which is not full of holes and undefined behaviour, also feels like fighting in the beginning. Empirically, it is also a fight that is won much more rarely.