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

the footnote [1] should be [0], just for the sake of this very topic.

Seriously though, while the idiom does work for unsigned integers, it's a bad idiom to learn [makes code reviews harder]. The post-decrement one in the loop body works with everything (signed/unsigned), and it's well known.



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

Search: