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

As far as I'm concerned, that while expression is simpler than any possible three-statement for loop could be. Similarly, as long as the line is short, I have to dedicate less thought to tracking a single-line bracketless loop than a multi-line bracketed loop. (But don't use multiple lines without brackets, that makes it too hard to find the start and end and slows me down.)

I can see your point about *p++ being a speed bump, but overall this version seems less complex to me.



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

Search: