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

A more common form (and slightly less evil) is for error checking:

    if ((error = do_a_thing())) {
        // some error happened, good thing we saved the error code
    }
Given the standard "zero is success" paradigm, handling errors is very succinct.


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

Search: