Y
Hacker News
new
|
ask
|
show
|
jobs
by
pornel
3399 days ago
-> Result<MyStruct, Box<Error>>
accepts almost any type of error (via dynamic dispatch of things that implement std::error::Error trait).
1 comments
ww520
3399 days ago
That's a good idea. It's the shotgun approach.
link