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

If your code is wrong you want to fail as soon as possible.

    # authenticator == null
    if (authenticator.getSessionError(session) == null) {
        # Assumed session is okay, actually the bug is null authenticator
    }


hmm, yeah, that's a really good point. I guess this could sorta be resolved if you had non-nullable reference types.

You get the feeling though many of these problems comes down to null's largely being a language defect in itself which should have been adressed differently




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

Search: