biokoda
Joined 12 years ago
Karma
577
Submissions
230
Member since
Jan 21
Joined 12 years ago
Those are pretty awful numbers. https://blog.gigaspaces.com/amazon-found-every-100ms-of-late...
The way every reasonable person would. This release being the obvious example.
RN came from a giant company that uses it in its core product. Big difference.
Not at all. This is what the ? operator is for (was try! before).
The idiomatic rust way is to have your own Error type that implements From for other Error types that you may encounter (io::Error, Utf8Error, etc.).
Then you can simply just write let result = dosomething()?; for any operation that may fail. If an error happens, function will return with the error.
I don't think you can do it any cleaner, given the constraints Rust is operating under.