Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Announcing Rust 1.14. Parent comment
For the cleanest code, I would use `?` and a `From` impl for the error transformation.
If I didn't want to use `From`, I'd use `map_err`, `and_then`, etc. Both the Result and Option types have wonderful interfaces for chaining.
There are no comments on this comment yet.
For the cleanest code, I would use `?` and a `From` impl for the error transformation.
If I didn't want to use `From`, I'd use `map_err`, `and_then`, etc. Both the Result and Option types have wonderful interfaces for chaining.