qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 day agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square26fedilinkarrow-up1161arrow-down15file-text
arrow-up1156arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 day agomessage-square26fedilinkfile-text
minus-squareemilgardis@lemmy.mllinkfedilinkEnglisharrow-up3·1 day 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.