Rusty 🦀 Femboy 🏳️🌈 to Lemmy Shitpost@lemmy.world · 5 个月前Rustexternal-linkmessage-square18linkfedilinkarrow-up1228
arrow-up1228external-linkRustRusty 🦀 Femboy 🏳️🌈 to Lemmy Shitpost@lemmy.world · 5 个月前message-square18linkfedilink
minus-squareL3ft_F13ld!@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up2·edit-25 个月前As a not-a-developer, this sounds like my understanding of C, rather than C++.
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up2·5 个月前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
As a not-a-developer, this sounds like my understanding of C, rather than C++.
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