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

When you use the fact that && is not the logical conjunction, you'd better use another if.

    if (b != nil)
    if (b->bla == a->bla)
is so much clearer (and language agnostic) than

    if (b != nil && b->bla == a->bla)


I've never heard about writing language agnostic code in my life, lol!




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

Search: