3 ms·
No, it just makes it inconvenient to try to protect yourself from stubbing your toe in it.
by OCASMv2 1y ago
No, it just makes it inconvenient to try to protect yourself from stubbing your toe in it.
- codr7 1y agoC doesn't make anything inconvenient, that's its major appeal. Some things are convenient by design, yes, but it's not trying to prevent you from doing anything. That's a feature.
- OCASMv2 1y ago> C doesn't make anything inconvenient Other than writing memory safe code, as history has shown.
- codr7 1y agoDifficult, not inconvenient. Because it allows things that are difficult, like writing your own memory allocators. If you don't like working at that difficulty level, then C programming isn't for you. And that's fine.
- OCASMv2 1y agoIt doesn't allow me to write my own memory allocator, it forces me to. This line of argumentation reminds me of this: Advertise and promote a shortcoming or a fault as a virtue. For example, ultra-cheap single-use film cameras are advertised as "No Focusing Required." The truth is, no focusing is possible, because those cameras have cheap plastic fixed-focus lenses that won't move and can't be focused. What is a serious shortcoming for a camera — the inability to properly focus on the subject — is sold as a convenience: "You don't have to bother with focusing." https://orangepapers.eth.limo/orange-propaganda.html#make_virtue https://orangepapers.eth.limo/orange-propaganda.html#make_vi...
- codr7 1y agoNo it doesn't, malloc() and free() is the default.