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

You're right, it cannot, and does wrap around.

But some people might think that it could, so putting the cast could increase readability for them. A similar reasoning applies with operator precedence: even though it's very well defined, we tend to forget it, so instead we put additional parentheses. But in a couple specific cases it hurts more than it helps.



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

Search: