Comment on How One Uncaught Rust Exception Took Out Cloudflare

ragingHungryPanda@lemmy.zip ⁨22⁩ ⁨hours⁩ ago

I feel like I’ve seen an insane number of error messages in various apps and websites around the unwrap method.

But this is on a result type, right? I’d figure the point would be that you would match on it and that the unwrap itself, which if my assumptions are correct, is more like get value or throw, should either not exist or take a default value. You shouldn’t be able to directly get the value of a monad.

source
Sort:hotnewtop