Comment on Rust
0x0@lemmy.dbzer0.com 5 weeks agoThe C++ side gives you what you need to create your own seat belt: spools of razor wire and clippers to remove the sharp edges (but no gloves). If you cut yourself, it’s your own damn fault. Real developers have discipline.
reseller_pledge609@lemmy.dbzer0.com 5 weeks ago
As a not-a-developer, this sounds like my understanding of C, rather than C++
0x0@lemmy.dbzer0.com 5 weeks ago
In practice, I tend to agree. It’s easier to avoid shooting yourself in the foot with C++, but it’s still just waiting for you to screw up.
I’m mainly getting at Undefined Behavior (UB), which both C and C++ have plenty of. This article from Raymond Chen has some excellent concrete examples: devblogs.microsoft.com/oldnewthing/20140627-00/?p…