kiri@ani.social to Programmer Humor@programming.dev · edit-23 days agoC++ani.socialimagemessage-square71fedilinkarrow-up1673arrow-down111file-text
arrow-up1662arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-23 days agomessage-square71fedilinkfile-text
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up3arrow-down2·2 days agopoint is, Rust manages to give you not a segfault but a meaningful error almost all the time until you use unsafe
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up1·2 days agoIf you’re getting a segfault in C++, it’s also cause you used unsafe code. It’s just not officially enclosed in an “unsafe” block.
point is, Rust manages to give you not a segfault but a meaningful error almost all the time until you use unsafe
If you’re getting a segfault in C++, it’s also cause you used unsafe code. It’s just not officially enclosed in an “unsafe” block.