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

Ok, much better. At the risk of looking more like a java try/catch, is it possible to wrap multiple statements in a single try! clause ?

Or at least have some way of saying " if there's any error in this block of code, simply stop execution and forward it to the calling statement"



No, but that's would also defeat the purpose. The idea of results is that you know from looking at the code what can fail. If you remove that information you might as well use exceptions.




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

Search: