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

From the HN submission title it wasn't obvious that the issue is people misunderstanding that the ^ operator isn't the exponential operator but the XOR operator. Clicking through made it clear.

Warning about constant subexpressions where the LHS and RHS of ^ are constant literals makes a lot of sense to me, but if the LHS is a constant expression but not a constant literal, then not so much. Also, warning about this will cause some false positives where macro expansions are involved -- probably not a good thing.



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

Search: