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

That's why it's a good practice to comment closing curly braces for the long blocks:

    while (1)
    {
        < many lines of nested code >
    } // end of while


But before you do that, try pulling out functions.


Of course, but in embedded applications fairly large loops are common. It's not uncommon to see all code embedded inside a single while (1).




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

Search: