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

Why not:

    while( (foo = bar()) != 0 )
    {
        /* other work */
    }
Or even simpler (since 'foo' serves no real purpose in the example):

    while( bar() )
    {
        /* other work */
    }




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

Search: