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

Because it would be a huge hassle to go into that library and write an alternate version that doesn't return a Result. So you're stuck with the type system being wrong in some way. You can add error-handling code upfront but it will be dead code at that point in time, which is also not good.


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

Search: