kiri@ani.social to Programmer Humor@programming.dev · edit-21 year agoC++ani.socialimagemessage-square65linkfedilinkarrow-up1155arrow-down12file-text
arrow-up1153arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-21 year agomessage-square65linkfedilinkfile-text
minus-squareRoyaltyInTraining@lemmy.worldlinkfedilinkarrow-up23arrow-down1·1 year agoExcept that many other languages have proven that C++ is simply terrible at providing meaningful errors.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up4arrow-down1·edit-21 year agoThe whole point of a segfault is that you can’t really know anything about it. Even in rust, when you get a segfault there is no meaningful error.
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up3arrow-down2·1 year 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·1 year 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.
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up0·1 year agoI wish there was something like that for SQL
minus-squareRicky Rigatoni@lemm.eelinkfedilinkarrow-up5arrow-down1·1 year agoWe can always make a Rust Query Language
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up5·1 year agoFeels like some arcane divination magic, I WANT IT
Except that many other languages have proven that C++ is simply terrible at providing meaningful errors.
The whole point of a segfault is that you can’t really know anything about it. Even in rust, when you get a segfault there is no meaningful error.
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.
I wish there was something like that for SQL
We can always make a Rust Query Language
Feels like some arcane divination magic, I WANT IT