qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-23 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square27fedilinkarrow-up1168arrow-down15file-text
arrow-up1163arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-23 days agomessage-square27fedilinkfile-text
minus-squareemilgardis@lemmy.mllinkfedilinkEnglisharrow-up3·3 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.