Re:Announcing Tokio 0.1
by steveklabnik on Wednesday January 11, 2017 @02:42PM
(#13376844)
Yes, and that discussion is still ongoing. The devil, as always, is in the details.
[ Parent
| on HN ]
Re:Announcing Tokio 0.1
by JoshTriplett on Wednesday January 11, 2017 @03:06PM
(#13377052)
`-> impl Trait` seems useful in that context, so that main could have a variety of appropriate return value types: `()`, `i32` (for an exit code), or `Result<T, E>` where T implements ReturnValue and E implements Error.
`quick_error` uses a trait like that to determine the exit code of `main()`, allowing it to return either () or i32.