|
|
|
|
|
by maccard
109 days ago
|
|
> if the return type is `Result<MyDataType, MyErrorType>`, the caller cannot access the `MyDataType` without using some code that acknowledges there might be an error (match, if let, unwrap etc.) I think you can make the same argument here - rust provides unwrap and if you don’t know go, that’s just how you get the value out of the Result Type. |
|