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-squareRoyaltyInTraining@lemmy.worldlinkfedilinkarrow-up81arrow-down1·3 days agoExcept that many other languages have proven that C++ is simply terrible at providing meaningful errors.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up4arrow-down1·edit-23 days 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·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.
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up5·3 days agoI wish there was something like that for SQL
minus-squareRicky Rigatoni@lemm.eelinkfedilinkarrow-up6arrow-down1·3 days agoWe can always make a Rust Query Language
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up6·3 days 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