qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-211 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square29fedilinkarrow-up1174arrow-down15file-text
arrow-up1169arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-211 days agomessage-square29fedilinkfile-text
minus-squareemilgardis@lemmy.mllinkfedilinkEnglisharrow-up3·11 days agoHere’s a bad example but hopefully captures the why. https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=43d055381e7bb52569c339d4526818f4 We have a condition we know must be satisfied (the option will always be Some), but cant prove in code.
Here’s a bad example but hopefully captures the why. https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=43d055381e7bb52569c339d4526818f4
We have a condition we know must be satisfied (the option will always be Some), but cant prove in code.