Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I do when prototyping. Long term you don't really want to pass around &str errors, but they are quick and dirty and easy to get rolling with.


Seems just as quick to make an enum with thiserror string conversion? Not much boilerplate at least.


You can also use eyre! with it's accompanying Result for even easier and faster development.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: