kiri@ani.social to Programmer Humor@programming.dev · edit-23 months agoC++ani.socialimagemessage-square65fedilinkarrow-up1154arrow-down12file-text
arrow-up1152arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-23 months agomessage-square65fedilinkfile-text
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up3arrow-down2·3 months 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·3 months 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.