3 ms·
Eh, I'm not convinced. 1. Culturally, using `unwrap` is an omerta to Rust developers in the same way `panic` is an omerta to Go devs; 2. In the Rust projects
by zero_shift 10mo ago
Eh, I'm not convinced.
1. Culturally, using `unwrap` is an omerta to Rust developers in the same way `panic` is an omerta to Go devs;
2. In the Rust projects I've seen there is usually a linter rule forbidding `unwrap` so you can't use it in production
- gwd 10mo ago> omerta Unfortunately none of the meanings Wikipedia knows [1] seems to fit this usage. Did you perhaps mean "taboo"? I disagree that "unwrap()" seems as scary as "panic()", but I will certainly agree to sibling commenters have a point when they say that "bar, _ := foo()" is a lot less scary than "unwrap()". [1] https://en.wikipedia.org/wiki/Omerta_(disambiguation) https://en.wikipedia.org/wiki/Omerta_(disambiguation)