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

Try-blocks with ~one line are best practice on code based I have worked with. The upside is that you can bubble errors up to the place where you handle them, AND get stack traces for free. As a huge fan of Result<T, E>, I have to admit that that's a possible advantage. But maybe that fits your definition of lazy :).


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

Search: