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

The common use for bitwise I have seen is to represent multiple boolean states in a single variable. It's not required for most people at all. A more descriptive multi-value hash/struct with each state explicitly listed as a boolean will create a more readable code. Unless there's a strong need for memory management or a binary protocol implementation, I don't see a need for it.


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

Search: