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

This is a really good point and a common error in bit flip detection code. To avoid this kind of look-before-you-leap hazard the following is recommended:

    try {
        do_action()
    } catch (BitFlipError e) {
        logger.critical("Shouldn't get here")
    }
Ask-for-forgiveness as an error detection pattern avoids these kinds of errors entirely.




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

Search: