2 ms·
Stuff like type TestResult = Result<(), Box<dyn std::error::Error>> is not obvious nor simple and makes a joke of the claim that Rust is simpler than C++
by lenkite 5y ago
Stuff like
type TestResult = Result<(), Box<dyn std::error::Error>>
is not obvious nor simple and makes a joke of the claim that Rust is simpler than C++ in error handling. Damn, I prefer straightforward C++ exceptions after seeing stuff like this.