3 ms·
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 er
by sweetjuly 3y ago
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.