Rusty 🦀 Femboy 🏳️🌈@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 5 months agoRustlemmy.blahaj.zoneexternal-linkmessage-square20fedilinkarrow-up1235arrow-down122
arrow-up1213arrow-down1external-linkRustlemmy.blahaj.zoneRusty 🦀 Femboy 🏳️🌈@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 5 months agomessage-square20fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up2·5 months agoIn 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: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=633
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: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=633