logoalt Hacker News

burntsushiyesterday at 8:51 PM1 replyview on HN

I'm on libs-api and I'd personally be on board with something like `thiserror` coming into `std`. But it would need a champion I think.


Replies

epageyesterday at 9:20 PM

I think we should provide the building blocks (display, etc like derive_more) rather than a specialized version one for errors (thiserror).

I also feel thiserror encourages a public error enum which to me is an anti-pattern as they are usually tied to your implementation and hard to add context, especially if you have a variants for other error types.

show 2 replies