xactor icon indicating copy to clipboard operation
xactor copied to clipboard

using anyhow::Error

Open ghost opened this issue 4 years ago • 1 comments

Why use anyhow::Error, I don't get why it is needed, it leaks the interface so I have to add anyhow to my dependencies if I want to handle errors from xactor.Also, I would like to not have to learn about "anyhow" just to use xactor. I think a concrete Error struct would be better maybe?

ghost avatar Aug 01 '20 01:08 ghost

I don't think anyhow is intended for libraries. thiserror is a nice "non-leaking" lib that produces typesafe errors. I think xactor should probably switch.

hoodie avatar Oct 19 '21 19:10 hoodie