the.bay.news

I've drawn a lovely splash for my handy error-handling crate - erratic✨

The Rust Programming Language Forum
I've drawn a lovely splash for my handy error-handling crate - erratic✨
Here it is. erratic. Since I keep running into binary projects where errors need to be handled differently by type, designing error types for every module has really been giving me a headache. So I ended up making an error type Error<S = Stateless>, a bit like Box<dyn Error>, but with a generic parameter attached. That generic can be any type that implements Debug (mostly an enum), and it's used to mark the error state (like ErrorKind) that need to be handled by the upper layers. Then I al...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.