4 ms·
Right, so that's relevant to a minor incidental comment I made. But what do you think of the main points, which are (a) If you write the message the way you su
by da39a3ee 5y ago
Right, so that's relevant to a minor incidental comment I made. But what do you think of the main points, which are
(a) If you write the message the way you suggest the printed error message is misleading, and
(b) The Rust community does not encourage using .expect() in the way you suggest; in particular the canonical Rust documentation source instructs us to use it as
foo.expect("A thing I do not expect")
- da39a3ee 5y agoSimilarly, from the rust stdlib docs for process::Command let hello_1 = echo_hello.output().expect("failed to execute process");