| ▲ | echelon 2 hours ago | |
Panics should be explicit, not implicit. unwrap() should effectively work as a Result<> where the user must manually invoke a panic in the failure branch. Make special syntax if a match and panic is too much boilerplate. This is like an implicit null pointer exception that cannot be statically guarded against. I want a way to statically block any crates doing this from my dependency chain. | ||
| ▲ | bigstrat2003 2 hours ago | parent | next [-] | |
unwrap is explicit. | ||
| ▲ | wrs 2 hours ago | parent | prev [-] | |
Not sure what you're saying with the "work as a Result<>" part...unwrap is a method on Result. I think you're just saying the unwrap/expect methods should be eliminated? | ||