qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-220 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square29linkfedilinkarrow-up1176file-text
arrow-up1176imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-220 days agomessage-square29linkfedilinkfile-text
minus-squareemilgardis@lemmy.mllinkfedilinkEnglisharrow-up3·20 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.