Hacker News new | past | comments | ask | show | jobs | submit login

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).




Applications are open for YC Winter 2020

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

Search: