Re:Using unwrap() in Rust is okay
by burntsushi on Monday August 08, 2022 @10:00PM
(#32393450)
Just write 'expect("FIXME")' or similar. :-)
[ Parent
| on HN ]
Re:Using unwrap() in Rust is okay
by deathanatos on Tuesday August 09, 2022 @02:30AM
(#32394843)
I've thought about this, it just requires some effort, particular if you want the result to be grep-able. (And, in >1 person groups, then it requires coordination, although perhaps also all of those should be remove prior to committing…)
Re:Using unwrap() in Rust is okay
by burntsushi on Tuesday August 09, 2022 @09:07AM
(#32397267)
I think anything you do here is going to require some kind of effort.
Personally, I think it would be better to stop thinking about 'unwrap()' as its own special thing. 'unwrap()' is just a common manifestation of something much more fundamental: runtime invariants. Think about those.