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

This is annoying. It’s because errors were designed to be a bitset and not have pointers. I would also prefer that they were a `union(enum)`.

We are free to do that as a return type like `Result(T)` and just forgo using `try`, but yeah, I wish this was in there.



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

Search: