Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kbart
· 10y ago · 0 comments
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
Comments
[–]
possibility
10y ago
But before you do that, try pulling out functions.
[–]
kbart
OP
10y ago
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).