Re:Announcing Tokio 0.1
by hordeallergy on Wednesday January 11, 2017 @01:46PM
(#13376369)
Agreed. Looking for examples of how to handle errors, results, etc and only ever finding unwrap has frustrated me in the past, and as a noob I would have preferred fleshed out rather than shortcuts.
[ Parent
| on HN ]
Re:Announcing Tokio 0.1
by steveklabnik on Wednesday January 11, 2017 @01:50PM
(#13376400)
https://doc.rust-lang.org/stable/book/error-handling.html goes into fairly extreme level of details about this, if you're still trying to learn.
http://rust-lang.github.io/book/ch12-03-improving-error-hand... shows how to refactor a project to improve its error handling as well, for something a bit less abstract.