Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kbart
on April 15, 2016
|
parent
|
context
|
favorite
| on:
Fixing C
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
possibility
on April 15, 2016
[–]
But before you do that, try pulling out functions.
kbart
on April 15, 2016
|
parent
[–]
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: