minus-squareemilgardis@lemmy.mltoProgrammer Humor@programming.dev•Slapping on a `.expect` is also error handling!linkfedilinkEnglisharrow-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. linkfedilink
minus-squareemilgardis@lemmy.mltoWorld News@lemmy.world•‘Would you survive 72 hours?’ Germany and the Nordic countries prepare citizens for possible warlinkfedilinkEnglisharrow-up15·8 months agoSame in sweden! https://www.msb.se/en/ linkfedilink
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.